iPhone removeFromSuperview troubles
I am using a tab bar with a button that calls the current view and does a flip animation to reload it. Once it reloads it performs some operations that alter the view slightly from the last time it was visible.
While the view is flipping, you are able to see the previous view below it.
When I use:
[menuView removeFromSuperview];
the view flips the superview is black underneath like I want but the:
-(void)viewDidLoad
does not fire. My new flipped view is unchanged.
What I want is for the back to 开发者_JS百科be black while the view is flipping and the viewDidLoad to fire.
Any help?
I am surprised viewDidLoad was called more than once either way. Have you tried putting the code to update the view in viewWillAppear instead?
精彩评论