当用户旋转他们的设备时,UIPageViewController
它会从它显示的任何页面淡出回到第一页。这真的很烦人,尤其是当用户将多个页面放入文档时。它仅出现在 iOS 6 中。
当用户旋转他们的设备时,spineLocationForInterfaceOrientation
被调用,这可能与问题有关。
- (UIPageViewControllerSpineLocation)pageViewController:(UIPageViewController *)pageViewController
spineLocationForInterfaceOrientation:(UIInterfaceOrientation)orientation {
return UIPageViewControllerSpineLocationMin;
}
我总是希望脊椎在左侧。
你知道是什么导致UIPageViewController
重置吗?我在这里发现了一个错误报告,但我一直无法在网上找到任何其他信息,让我认为我做错了什么。