ios - How to use a segmented control to change container views -


i posted, re-asking give better concept.

i'm trying use segmented control change through multiple views inside container view. i'm not sure how embed multiple views inside container view. saw tutorial how in objective-c, coding in swift.

twitter

this perfect example of i'm looking for. there uitabbarcontroller on bottom, there segmented control alter between "tweets" "photos" , "favorites." how achieve this?

thanks in advance!!

i'm assuming have collection view or table view or below segmented control. if that's case, i've had luck using segmented control switch data sources (and delegates, if necessary) collection. if have views, can use segmented control show 1 , hide others.

do have code or more specific questions?


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -