いくつかの条件が満たされたときにステータスバーの回転をロックしたいだけです:
- (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
}
}
}
とにかくプログラムでステータスバーをロック/ロック解除するには? ありがとう。