开发者

iPhone removeFromSuperview troubles

开发者 https://www.devze.com 2022-12-09 13:34 出处:网络
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 wa

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号