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