Refresh or reload uitabbar and my whole application in iphone when user logout
I have login and logout feature in my application. when user logout then i switch user from my home screen to logout screen. but when i login a user with different account then previous user information displays for some seconds because i have timer in my application when timer execute then user information would update. I feel this issue is due to tabbarcontroller which is loading from .Xib file and it is not reloading when user login again. I want to refresh a开发者_如何学Cnd reload my whole application when user logout and login again. I have already release tabbarcontroller but it is not effecting on this situation. Please if any one has any suggestion and solution then help me.
Regards, Shumais-ul-haq
Don't use a timer, you don't need it. Clear out any data so that when viewDidLoad is called there's nothing there (clear textfields, labels, etc.)
精彩评论