私はiPhonedevの初心者ですが、何度も呼ばれているのはshouldAutorotateToInterfaceOrientationイベントではないからだと思います。これは単に、オートローテーションがサポートされているかどうかに応じて、 aを取得しUIInterfaceOrientationて戻ることを意味します。YESNO
AppleのドキュメントUIInterfaceOrientationには、次のように定義されていることが示されています。
typedef enum {
UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait,
UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,
UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeRight,
UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft
} UIInterfaceOrientation;
したがって、そのメソッドをオーバーライドすることになっているinterfaceOrientationのは、上記の1つ以上をチェックし、ビューがそれに自動回転する必要があるかどうかを示すものだけです。