ios屏幕旋转
屏幕旋转
// ios 5、6都有这个方法
- (BOOL)shouldAutorotate{
returnYES;
}
//ios6有效
- (NSUInteger)supportedInterfaceOrientations{
returnUIInterfaceOrientationMaskLandscape;
}
//ios5有效
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
return ((toInterfaceOrientation==UIInterfaceOrientationLandscapeLeft)||(toInterfaceOrientation==UIInterfaceOrientationLandscapeRight));
}
欢迎加群互相学习,共同进步。QQ群:iOS: 58099570 | Android: 572064792 | Nodejs:329118122
做人要厚道,转载请注明出处!