UIPopoverController and Keyboard on iOS 7 come in weird animations

In iOS 7, when you introduce a UIPopoverController, the system adds a UIView with some alpha effect to focus the user on the UIPopoverController. So far so good.

The problem is that if you have a UIPopoverController that appears at the bottom of the screen and that the contents of the UIPopoverController has a UITextField (or something else that brings a keyboard), the dull UIView animation doesn't follow the keyboard very well.

I created a sample project to isolate the problem. Download project

And a video with the same problem as on the simulator: Watch a movie

One solution might simply be to disable the dull UIView as stated here , but I would like to keep it if possible.

Is there a workaround, or maybe I'm doing something wrong? I am starting to consider to fill out an error for this.

Thanks.

+4
source share
1 answer

Have you tried wrapping your code in a block to disable implicit CoreAnimations animation blocks? Something like that

[CATransaction begin];
[CATransaction setDisableActions: YES];
// Show your popover:
// [myPopover presentPopover:...]
[CATransaction commit];
0
source

All Articles