开发者

Set View LandscapeLeft (iPhone SDK)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜