Reputation: 2302
Here's the scenario:
UINavigationController
as the top view.viewWillAppear
gets called on the first tab bar view.viewWillDisappear
gets called.viewWillAppear
is called.viewWillDisappear
is called.viewWillDisappear
gets called AGAIN on the main view for the first tab bar item.Any ideas?
Upvotes: 1
Views: 1103
Reputation: 2302
I ended up working around this by keeping a BOOL that would tell me if I need to perform the viewWillDisappear work or not. Ugly but it works. I was hoping there would be a better solution or that I was doing something that was obviously wrong.
Upvotes: 0