我只是想在满足某些条件时锁定状态栏的旋转:
- (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
}
}
}
无论如何以编程方式锁定/解锁状态栏?谢谢。