如何在iPhone中以编程方式设置屏幕方向(如横向视图) [英] how to set screen orientation like landscape view programmaticaly in iphone
本文介绍了如何在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
}
这篇关于如何在iPhone中以编程方式设置屏幕方向(如横向视图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文