2009-09-04 31 views
0

我要啓動我的應用程序在橫向模式和我下面的步驟描述這裏:iPhone應用程序在橫向模式下啓動。爲什麼這個模糊的警告?

http://developer.apple.com/iphone/library/technotes/tn2009/tn2244.html

要summerize:

在我的ViewController:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); 
} 

在我的信息.plist:

<key>UIInterfaceOrientation</key> 
<string>UIInterfaceOrientationLandscapeRight</string> 

在模擬器或設備上啓動後,我收到以下消息:

使用兩段式旋轉動畫。要使用更平滑的單級動畫,此應用程序必須移除兩階段方法實現。

咦?

有人可以請解釋這是什麼意思,並提供我解決它的步驟。

乾杯,

道格

回答

1

的問題是在這種方法:

- willAnimateFirstHalfOfRotationToInterfaceOrientation:時間:
- willAnimateSecondHalfOfRotationFromInterfaceOrientation:時間:

你的ViewController只有其中之一嗎?嘗試對其發表評論。或者添加第二個。

+0

輝煌。謝謝你。除了有點模糊之外,這些都是我見過的最長的方法名稱;-)。你能告訴我是一個ole C黑客嗎?乾杯。謝謝。 – dugla

相關問題