デバイス自体が回転しているときにアプリケーションでインターフェースを回転させようとしていますが、うまくいきません。サポートされているインターフェイスを plist 情報ファイルに追加し、shouldRotateToInterfaceOrientation に対して yes を返しました。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) {
はいを返します。
} そうしないと {
いいえを返します。
}
}
これがローテーションの実装方法ですか?
助けてください!