iphone - How to Create Tab bar programmatically from second viewcontroller -
i developing application contains login page. first page should login page (with view controller). once user has logged in going show view need show tab bar, when user logs out same login screen has shown. how can achieve this?
you create tabbarcontroller
in appdelegete
class.when user login set appdelegete
tabbarcontroller
rootviewcontroller
of window.
appdelegate *appdelegate = (appdelegate *) [[uiapplication sharedapplication] delegate]; [appdelegate.window setrootviewcontroller:appdelegate.tabbarcontroller];
Comments
Post a Comment