Don*_*son 4 iphone xcode orientation ipad
有没有办法只允许我的应用程序在横向模式下可见?我已经设法将应用程序的方向默认为横向,但是在iPad模拟器中,当我执行Command-> Arrow时,应用程序将旋转为纵向.我在"支持的接口方向"同时用于人像的条目,但似乎to've改变任何东西,不删除的plist中上市.
任何的想法?
Joo*_*uur 11
在视图控制器中,有一个委托方法:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15709 次 |
| 最近记录: |