0
我有一個翻頁應用程序,可以在iOS 5.1模擬器中正常工作,但我正在更新到iOS 6,並且遇到了與UIPageViewController有關的問題。所有頁面視圖控制器都將UIScrollView設置爲添加到它們的邊界。我有navigationOrientation設置爲水平和翻頁正常工作中的iOS 5UIPageViewController導航方向適用於iOS 5,但不適用於6
BookController *bc = [[BookController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl
navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal
options:nil];
bc.dataSource = bc;
bc.delegate = bc;
bc.bookDelegate = theDelegate;
在iOS 5中水平滾動時,下面的方法火...
- (UIViewController *)pageViewController:(UIPageViewController *)pageViewController
viewControllerAfterViewController:(UIViewController *)viewController;
- (UIViewController *)pageViewController:(UIPageViewController *)pageViewController
viewControllerBeforeViewController:(UIViewController *)viewController;
但是,在iOS 6中它們在水平和垂直滾動時觸發。
任何想法可能會發生什麼?