- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation != UIInterfaceOrientationMaskLandscapeLeft); } -(NSUIn……
Objective C code?1234-(BOOL)shouldAutorotate{ return NO; //返回NO不就行了。(默认创建的UIView本身也不支持旋转的啊)}
29,027
社区成员
12,466
社区内容
加载中
试试用AI创作助手写篇文章吧