摘要: 1、屏幕旋转显示视图时,尽量不用单一的view去实现,将view放在viewcontroller里实现,这样可以在viewController中去添加其旋转方法,实现适配屏幕旋转。(1)支持全部方向的旋转iOS6.0需要下面三个方法,代码如下:-(BOOL) shouldAutorotateToInterfaceOrientation : (UIInterfaceOrientation) toInterfaceOrientation{ return(toInterfaceOrientation !=UIInterfaceOrientationMaskPortraitUpsideDown);}- 阅读全文
posted @ 2013-07-16 10:20 nanoCramer 阅读(318) 评论(0) 推荐(0) 编辑