(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationIsLandscape( interfaceOrientation );
// return (UIInterfaceOrientationIsPortrait( interfaceOrientation ));
}
函数二:
- (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
return UIInterfaceOrientationMaskLandscape;
// return UIInterfaceOrientationMaskPortrait;
#endif
}
- (BOOL) shouldAutorotate {
returnYES;
// return NO;
}
设置 屏幕和内容关系,protrait