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

ios switching embedded view in storyboard

embed uiviewcontroller programatically?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -