で初期化されたビューがあります -(id)initWithCoder:(NSCoder *)aDecoder
このビューを で初期化するにはどうすればよいviewController
ですか?
viewController
デバイスでビューを表示したい場合は、が必要だと思いautoRotate
ます。よくわかりませんが、 ?autoRotation
なしで達成できるかもしれません。viewController
オブザーバーをshouldAutorotateToInterfaceOrientation:
ビューに追加しても、ビューが自動回転しませんでした。しかし、私も追加すると
-(void) orientationChanged:(NSNotification *) notification
{
NSLog(@"orientationChanged: %d", [[notification object] orientation]);
}
コンソール ウィンドウで向きの値を取得します。
どんな助けでも大歓迎です。