开发者

How do i find out if my view can be seen?

When the view changes, the colour of the UINavigationBar changes. But when the user presses the back button, I want it to change back, and it doesn't. How can i find out when the u开发者_如何学Pythonser goes back to the original page, so it will change back to the regular colour again?


You can code in viewWillDisappear with a bool variable which checks you are going forward or backward .

When you go forward (means push or presentModelViewController) then set the BOOL as YES oterwise it is NO.

and keep track in viewWillDissappear.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜