私はいくつかのビューを回転させようとしていますが、メソッドは呼び出されていないので、私はとても欲求不満です。ここで方法は次のとおりです。shouldAutorotateToInterfaceOrientationは呼び出されていませんiphone
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
私も試してみました:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ((interfaceOrientation == UIInterfaceOrientationPortrait) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
私のInfo.plistは、次のようになります。
私が欠けていますか?私はここで見つけたすべての答えを見ましたが、まだ問題は残っています。
さらに詳しい情報が必要です。このメソッドをどこに置いていますか?どのようなナビゲーション階層(tab bar?)を使用していますか?また、plistではポートレート値を追加するだけでなく、現在使用しているものの代わりにSupported interface orientation(iPhone)プロパティを試しますドロップダウンで?私は古いビルドからそれを覚えているかもしれません) –