搜尋此網誌

顯示具有 rotation 標籤的文章。 顯示所有文章
顯示具有 rotation 標籤的文章。 顯示所有文章

2012年9月27日 星期四

更新到ios6 畫面旋轉的問題解決


其實這篇很單純
如果要符合iOS 6
不需要改動程式其他部分只要加上

  1. -(NSUInteger)supportedInterfaceOrientations{  
  2.     return UIInterfaceOrientationMaskLandscape;  
  3. }  
  4.   
  5. - (BOOL)shouldAutorotate  
  6. {  
  7.     return YES;  
  8. }  

要怎麼轉動請改第一個supportedInterfaceOrientations

原文如下:
iOS 6的rotation改变了很多。先来看看官方的描述  http://www.bgr.com/2012/08/06/ios-6-beta-4-change-log-now-available/