标签:
-(void)viewWillAppear:(BOOL)animated{ [[UIDevice currentDevice] setValue:[NSNumber numberWithInteger:UIDeviceOrientationLandscapeLeft] forKey:@"orientation"]; } -(void)viewWillDisappear:(BOOL)animated{ [[UIDevice currentDevice] setValue:[NSNumber numberWithInteger:UIDeviceOrientationPortrait] forKey:@"orientation"]; }
放在要旋转的页面中
标签:
原文地址:http://www.cnblogs.com/yeagen/p/4182680.html