Ash*_*Var 4 rotation orientation ios
我创建了一个包含许多视图的应用程序,我希望其中一些仅以纵向方式显示.我在.m文件中编写了这个代码:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return NO;
}
Run Code Online (Sandbox Code Playgroud)
我还需要做点什么吗?可能在.h文件中?