面向iPad应用横向方向启动应用程序时出现一个问题。 我开发了iPhone应用程序,后来我移植到iPad。以横向方式启动iPad应用程序
我已经设定关于info.plist中
[ UISupportedInterfaceOrientations~ipad ] to support all orientation UIInterfaceOrientationPortrait , UIInterfaceOrientationPortraitUpsideDown , UIInterfaceOrientationLandscapeLeft , UIInterfaceOrientationLandscapeRight.
方向,但是当我开始在风景模式iPad应用,它总是在potrait模式启动。
沿着这
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{ return YES; }
帮助我,如果我缺少这个东西..
感谢,
萨加尔
如果您正在定义对所有方向的支持,那么您的视图将与您的设备处于相同的模式。即,如果您的设备处于肖像模式,那么您的视图将以纵向模式显示。更改设备方向也会改变视图方向。 – Jim 2010-06-01 06:12:41
感谢Jim的回复..但是当方向处于横向模式时,我开始应用...它仍然以纵向模式开始(即按照主页按钮的方向)。我需要在开始时实现正确的定位,因为需要显示横向屏幕或纵向屏幕。 – 2010-06-02 05:40:42