UIScrollView with special contentSize in UIPageViewController prevents paging

Originator:an00na
Number:rdar://18469620 Date Originated:26-Sep-2014 12:06 PM
Status:Closed Resolved:in iOS 11
Product:iOS SDK Product Version:iOS 10
Classification:Serious Bug Reproducible:Always
 
Summary:
If UIScrollView's contentSize.width is slightly larger than its frame.width, UIPageViewController can not page correctly. I guess it is because UIScrollView wants to scroll itself since contentSize.width > frame.width but it can not do the scrolling well for the margin is so small.

This issue only occur on iOS 8, not on iOS 7.

Run the sample app on device or simulator with screen of 320-point width because the special contentSize is hard-coded for this size. But I believe this issue also occurs on devices with other screens, you just need another special contentSize.

The relevant code is in [DataViewController viewDidLoad].

Steps to Reproduce:
1. Launch sample app.
2. Page right.
3. Page left.
4. Repeat 2~3 until you see the issue.

Code: https://cloudup.com/cDGZOyu46oK

Comments


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!