1

私は UIPageViewController をいじっており、UIPageViewController をスタンドアロン コントローラーとして使用しています。必要なものはすべて魅力的に機能します。私は今、いくつかのコントローラーを PageController に追加する必要があり、UIViewController を実装し、すべてをこの ViewController に追加しました。UIPageViewController は firstResponder ではないため、デバイスの回転が通知されないことを除いて、すべてが完全に機能します。どうすれば解決できますか?viewWillRotateToInterfaceRotationでspinelocationForInterfaceOrientationを手動で呼び出そうとしましたが、そうではありません...誰かヒントはありますか?

ありがとう

4

1 に答える 1

0

あなたの UIViewController は UIPageViewController のデリゲートですか?

そうでない場合は、これを試してください:

@interface YourViewController : UIViewController <UIPageViewControllerDelegate>

これを実装します:

- (UIPageViewControllerSpineLocation)pageViewController:(UIPageViewController *)pageViewController spineLocationForInterfaceOrientation:(UIInterfaceOrientation)orientation
于 2013-02-14T08:11:34.137 に答える