Iphone UIPageViewController中的UIPageViewController

Iphone UIPageViewController中的UIPageViewController,iphone,ios6,uipageviewcontroller,Iphone,Ios6,Uipageviewcontroller,我正在使用UIPageViewController,并将UIPageViewController用作独立的控制器。我需要的一切都像一个魔咒。 我现在需要在PageController中添加一些控制器,我已经实现了一个UIViewController,并将所有内容都添加到这个ViewController中。 除了UIPageViewController没有收到设备旋转的通知外,其他一切都正常工作,因为它不是第一响应者。 我怎样才能解决它?我尝试在viewWillRotateToInterfaceR

我正在使用UIPageViewController,并将UIPageViewController用作独立的控制器。我需要的一切都像一个魔咒。 我现在需要在PageController中添加一些控制器,我已经实现了一个UIViewController,并将所有内容都添加到这个ViewController中。 除了UIPageViewController没有收到设备旋转的通知外,其他一切都正常工作,因为它不是第一响应者。 我怎样才能解决它?我尝试在viewWillRotateToInterfaceRotation中手动调用spinelocationForInterfaceOrientation,但我不想。。。有人有什么暗示吗


谢谢

您的UIViewController是UIPageViewController的代表吗

如果没有,请尝试以下操作:

@interface YourViewController : UIViewController <UIPageViewControllerDelegate>
- (UIPageViewControllerSpineLocation)pageViewController:(UIPageViewController *)pageViewController spineLocationForInterfaceOrientation:(UIInterfaceOrientation)orientation