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
.
精彩评论