I created 5 tabs in my application. In Tab1 , I have a UITableView . On didSelectRowAtIndexPath I switch to another UIView in which I show all 5 tabs. And I also play a song in this navigation view.
Now, when I click the Back button in the navigation, and again I return to my original view, I can call viewWillDisappear (as expected, as in the usual situation).
But when I click on another tab, viewWillDisappear not called in the navigation view. Why is this happening?
I just thought that when I click on another tab, the view in Tab1 calls viewWillDisappear . But the navigation view will not call this method.
So what are the possible solutions? kindly give some advice ...
source share