0

いくつかの条件が満たされたときにステータスバーの回転をロックしたいだけです:

    - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {

        if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) {
          if(imageView.hidden == NO){        

            //lock the status bar rotation
          }else{
            //unlock the status bar rotation
          }
        }
}

とにかくプログラムでステータスバーをロック/ロック解除するには? ありがとう。

4

1 に答える 1