Checking if a UIViewController is about to get Popped from a navigation stack?

Override the viewWillDisappear method in the presented VC, then check the isMovingFromParentViewController flag within the override and do specific logic. In my case I’m hiding the navigation controllers toolbar. Still requires that your presented VC understand that it was pushed though so not perfect.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)