How do you add UITabBarViewController to an existing UIViewController?
currently I've been able to create a UIViewcontroller with a login screen and it pushes nicely to another view, now I've changed my mind about how the开发者_运维问答 apps going to look and I basically want to push it to a tab bar view. Whats the best way of going about this?
I thought that tabbar works only with the appdelegate? so i tried applying it to the current mainview.xib as well and tried to switch to the Tabbarviewcontroller after the user logs in correctly. Now either thats retarded or I'm not doing it right at all?
any help will be appreciated.
Mark P
Another approach might be to go ahead and make the UITabBarViewController your main viewController, and to display the login screen modally upon app startup or on app resumption (depending on your rules for login timeout).
精彩评论