我正在实现一个 UIPageViewController 并且一切正常,即使我在初始化后旋转设备它正确设置了 SpineLocation,但是
当我实例化 UIPageViewController 时,如果设备是横向的,它会创建只有一页的 UIPageViewController (UIPageViewControllerSpineLocationMin) ...
m trying to instantiate it using UIPageViewControllerSpineLocationMid just like the code below (and like developer.apple recommends) BUT when i do it... the UIPageViewController doesn
它加载...
NSDictionary * options = [NSDictionary dictionaryWithObject:
[NSNumber numberWithInt:UIPageViewControllerSpineLocationMid]
forKey:UIPageViewControllerOptionSpineLocationKey];
UIPageViewController *pageViewController = [[UIPageViewController alloc]
initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl
navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal
options:options]
有什么不对?谢谢!