views:

21

answers:

0

Guys,

Here is the scene -

My app is a login based app and I am using UITabBarController in my app, so I add UITabBarController after login successful (in appDelegate.h file ). There is also an option to continue without login. In one section I am showing an UIAlert to user to login to access a particular feature. When user press login now, I am removing UITabBarController.view using -

[tabbarcontroller.view removeFromSuperview]; 

Now after login successful I am adding this tabbarcontroller.view again to window.

Now my problem is the tabs are not refreshing according to logged in user. I tried to release the tabbarcontroller but thats not working.

I want to remove the tabbarcontroller.. add it again .. and all tabs should refresh