Monotouch 5.2.6およびiOS SDK 5.0.1を使用しています。回転時のUIPageViewControllerからのNSInternalInconsistencyException
私は別のビューコントローラの子コンテナであるUIPageViewControllerを持っています。 は、それは次のように作成されます。私は、デバイス(シミュレータ)を回転させる場合
pageViewController = new UIPageViewController (UIPageViewControllerTransitionStyle.PageCurl, UIPageViewControllerNavigationOrientation.Horizontal, UIPageViewControllerSpineLocation.Min);
this.AddChildViewController (pageViewController);
pageViewController.DidMoveToParentViewController (this);
this.viewCurrentMode.AddSubview (pageViewController.View);
、私はUIApplication.SendEvent()
でこの例外を取得:
Objective-Cの例外がスローされました。名前:NSInternalInconsistencyException 理由:提供されるビューコントローラの数は、(1)必要な 番号と一致しない(2)要求された脊椎の場所 (UIPageViewControllerSpineLocationMid)
のための脊椎の場所が「半ば」のではなく、 "min"。何か案は?
多分私は自分自身を経験豊富なMT開発者だと考えていますが、私はあなたの本を買うべきです! :-) – Krumelur
Hehe、本はいつでも役に立つ...! ;) –