摘要: ios横竖屏的效果是不相同的,所以我们在开发中如果允许屏幕横竖屏间的切换,那么我们就要调整视图的布局。利用Interface Builder开发,我们可以快速的拖拽出合适的界面布局,但是屏幕自动切换布局不能很好的适配,下图是,没有做任何调整的状态下,实现的横竖屏切换,可以看到界面不是很美观。 ... 阅读全文
posted @ 2015-06-23 19:15 4Dream 阅读(192) 评论(0) 推荐(0)
摘要: 首先在UIViewController的-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation方法中设置设备要支持的deviceOrientation;在UIViewCont... 阅读全文
posted @ 2015-06-23 17:19 4Dream 阅读(496) 评论(0) 推荐(0)
摘要: 1,去掉StatusBar在info.plist添加UIStatusBarHidden设置Boolean,设置为YES.2,横屏继续在info.list中添加UIInterfaceOrientation 设置UIInterfaceOrientationLandscapeRightxcode 4.3.... 阅读全文
posted @ 2015-06-23 17:16 4Dream 阅读(883) 评论(0) 推荐(0)