ios - Setting different view controller for one tab -
i have 5 tab in tab bar controller. users can use application anonymus user. 1 of tabs login page. if user logged in application, tab should home page. don't know how set different view controller 1 tab based on if condition
one of possible solutions use container view controller. so, view controller have 2 embedded view controllers, , in code can choose between them based on logic.
there can find relevant examples , topics: https://developer.apple.com/library/content/featuredarticles/viewcontrollerpgforiphoneos/implementingacontainerviewcontroller.html
Comments
Post a Comment