Andrew
Andrew

Reputation: 16051

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 user goes back to the original page, so it will change back to the regular colour again?

Upvotes: 0

Views: 63

Answers (1)

Ishu
Ishu

Reputation: 12787

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.

Upvotes: 1

Related Questions