嗨,我正在创建一个iOS应用程序,我希望它一直在肖像上运行,即使我向左/向右转动它,我也希望它保持不变,这里是与肖像相关的所有设置的一些图像。



这就是我设置的所有东西,所以我的问题是,我如何保持在纵向,即使当我倾斜它的时候,它在纵向打开,但是如果我把它向左转,它将旋转到横向。
提前感谢,我期待着你的到来。
发布于 2012-07-24 20:15:08
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}使用此方法仅支持纵向模式
发布于 2012-07-24 20:15:29
对于此函数支持的任何方向,返回YES。
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}https://stackoverflow.com/questions/11630312
复制相似问题