私はiOS 5ターゲットプロジェクトに取り組んでいます。私は次のような方向付け方法を持っています。すなわち、私のOrientation
が2回表示されます私のアプリが起動したときただし、私のログメッセージがコンソールに2回表示されますshouldAutorotateToInterfaceOrientation起動時に2回呼び出される
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
NSLog(@" My Orientation");
return YES;
}
、。私はシミュレータで自分のアプリをテストしていますが、これは起動時にちょうどorientation
を変更せずに起きています。すなわち、
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
は、私が正しいbehavior.Anyのヘルプではないと仮定するたびに、感謝
で二回呼ばなっています。
この問題は2度呼ばれていますか?ところで、あなたはYESまたはNOを返すことになっています。 –
私はYESを返します。 – Raj
IMOの通常の動作、iOS6のsupportedOrientationsは開始時に約10回、さらに1回転ごとに2回呼び出されます。 – lupatus