0
我新开发的iphone。在这里我想查看屏幕像iphone中的风景porgrammaticaly。我现在完成像肖像侧,当我转动左右侧automaticaly我添加了一些图像和pickerview数据这些也显示为像肖像和风景屏幕到iphone。屏幕方向像iphone中的肖像和风景
任何一个PLZ能帮助我在iphone
programmaticaly屏幕如何定位预先感谢您。
我新开发的iphone。在这里我想查看屏幕像iphone中的风景porgrammaticaly。我现在完成像肖像侧,当我转动左右侧automaticaly我添加了一些图像和pickerview数据这些也显示为像肖像和风景屏幕到iphone。屏幕方向像iphone中的肖像和风景
任何一个PLZ能帮助我在iphone
programmaticaly屏幕如何定位预先感谢您。
在您的班级中使用此方法。
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { //返回YES用于支撑取向
回报(interfaceOrientation == UIInterfaceOrientationLandscapeRight ||
interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}