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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -