【代码笔记】iOS-屏幕旋转

来源:互联网 发布:软件特性介绍 编辑:程序博客网 时间:2024/04/29 10:49

代码:

复制代码
- (void)viewDidLoad{    [super viewDidLoad];    // Do any additional setup after loading the view.        self.title=@"屏幕旋转";    }#pragma  mark -屏幕旋转-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{    return (interfaceOrientation==UIInterfaceOrientationPortrait);}-(BOOL)shouldAutorotate{    return YES;}-(NSUInteger)supportedInterfaceOrientations{    return UIInterfaceOrientationMaskPortrait;}
复制代码

 


0 0
原创粉丝点击