iOS how to detect programmatically when top view controller is popped? iOS how to detect programmatically when top view controller is popped? ios ios