开发者

Set View LandscapeLeft (iPhone SDK)

开发者 https://www.devze.com 2023-02-11 21:31 出处:网络
Hey guys, just starting off with the iPhone SDK, I\'ve built a simple iPhone app that displays locally stored webpages, but I want to get the app to start with the UIWebView sideways (Landscape left).

Hey guys, just starting off with the iPhone SDK, I've built a simple iPhone app that displays locally stored webpages, but I want to get the app to start with the UIWebView sideways (Landscape left).

I've set Initial interface orientation to Landscape (left home button) in the plist, but how do I actually rotate the view, beca开发者_运维问答use when I load it up, the view stays in portrait and the device is sideways!

Thanks


in case you wanna allow all orientations if user move his iPhone just add this in your UIViewController:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
 return YES
}
0

精彩评论

暂无评论...
验证码 换一张
取 消