iOS 6 UIPageViewController scroll mode changes pages when keyboard pops up

Originator:rbjones
Number:rdar://13315308 Date Originated:2013-02-28
Status:Duplicate of 12208049 Resolved:
Product:iOS Product Version:6
Classification: Reproducible:Always
 
Summary: When using UIPageViewController with UIPageViewControllerTransitionStyleScroll, after the page changes from the initial page, popping up the keyboard (due to the user tapping a UITextArea, for example) will cause the current page view to be dismissed without any delegate or data source methods being called; this also causes the keyboard to be dismissed.

Steps to Reproduce:

Code that reproduces the problem is attached. To reproduce: run the app (simulator or device).  Turn to another page, then tap the text area.

If you wish to create a reproducible test case from scratch: create a UIPageViewController with UIPageViewControllerTransitionStyleScroll.  Have at least one page with a UITextArea or similar view that will cause the keyboard to come up.

Expected Results:

The keyboard comes up and the user is able to alter the text in the text area.

Actual Results:

The keyboard pops up, then the current page goes away, another page (exactly which one seems nondeterministic) is shown, and the keyboard pops back down.  The UIPageViewControllerDelegate does not get notified of the page change; the UIPageViewControllerDataSource does not get a request for a view controller.

Regression:

iOS 6-only because UIPageViewControllerTransitionStyleScroll is an iOS6 feature.
The bug is specifically related to the keyboard coming up; it does not reproduce if a Bluetooth keyboard is connected to the device.
I have only tested this on iPad, but strongly suspect it would also occur on iPhone.

Comments

Check that. Occurs on iPhone device as well

Haven't found a workaround.

Seeing this on the iPhone Simulator as well

But oddly enough, it doesn't seem to happen on the device. At least not in my tests so far. Anyone know of workarounds in the meantime?

Related problem: duplicate of 12208049

Marked as duplicate but still status: open.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!