iOS Reload a view

Alhazred

macrumors member
Original poster
Jul 5, 2011
35
0
In my app I've put a "logout" button.
Tapping that button, the app logs out from an online service.
After this happens I need to reload the same view.
I've tried with this:
Code:
if ([self isViewLoaded]) {
	self.view=nil;
	[self viewDidLoad];
}
But I get this message and the app doesn't work correctly
nested push animation can result in corrupted navigation bar

Is there another way to reload a view?
The app is Navigation-based.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.