1

I would like my app's rotation to be fixed as landscape...

I've done some research, but most posts are about detecting change,

and I couldn't find any about forcing one.

Could anyone help me?

4

2 回答 2

5

尝试这个

在 plist 中将支持的界面方向更改为 Lansdscape

或者

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); // home button on right
}

一切顺利

于 2011-03-10T04:35:18.377 回答
1

You can change the info.plist of your project so that you app always shows Landscape initially.And then you can make your view controller's to support only landscape orientation.

hope this also helps

Only support for landscape Interface orientation

Launching application in landscape orientation for IPad

于 2011-03-10T04:33:03.990 回答