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.
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
Post a Comment