2

以下のコードに対して上記のコンパイラ警告が表示されます。インターフェイスとデバイスの向きの違いは理解していますが、警告を削除する方法がわかりません。誰でも助けることができますか?

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
if (ViewController != NULL) {
    [ViewController configureForDeviceOrientation:toInterfaceOrientation];
}
if (Controller != NULL) {
    [Controller configureForDeviceOrientation:toInterfaceOrientation];
}
currentOrientation = toInterfaceOrientation;
}
4

2 に答える 2