I have a UIButton (back button) in the upper left corner of the iPad app that rejects the view controller. I found that if you press this button a little too high, you can activate the button and start removing the notification bar at the same time. When this happens, my -viewWillDisappear runs and stops the animation in the view, but the view is not actually rejected. Of course, the notification bar does not completely disappear, so the clean result looks like my animation crashed, and that the back button also failed.
The obvious solution would be to move the button a bit, but since this is undesirable for layouts, I wonder if:
- Has anyone ever seen this behavior before.
- If this is a well-defined behavior, and if so, where is Apple describing it.
- Are there any known ways to work?
EDIT: Actually, it seems the least problem. Turns out this is my -applicationWillResignActive that -applicationWillResignActive called, not -viewWillDisappear . It still looks bad, but at least the behavior is well defined. I donβt activate my home button at all by simply removing the notification bar.
ios objective-c ipad
Garrett disco
source share