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

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -