Rah*_*diq 0 iphone uiwebview uiinterfaceorientation ios
我正在使用xcode 4.5,我只需要在一个包含webview的viewController上启用接口方向.我该如何启用它.
- (BOOL)shouldAutorotateToInterfaceOrientation 似乎在iOS6中已弃用
相反,你可以使用这个UIViewController
-(BOOL) shouldAutorotate{
return YES; //supports all
}
-(NSUInteger) supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAllButUpsideDown; //supports all but upside-down
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
277 次 |
| 最近记录: |