如何在iPhone中以编程方式设置屏幕方向(如横向视图)
问题描述:
我正在尝试在横向视图中开发屏幕方向.
Im trying to developing a screen orientation in landscape view.
在我的应用程序中,我以纵向视图完成工作,但我也尝试以横向视图进行查看.
here in my application i completed in portrait view but i trying to view like a landscape view also.
任何人都可以帮助我解决我的问题吗?在iPhone中以编程方式在横向视图中调整屏幕方向
can any one plz help me of my problem. screen orientation in landscape view programmaticaly in iphone
先谢谢
答
尝试一下:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES
}