2010-12-01 34 views
2

我目前在iOS項目中使用Three20。我有TTLauncherView顯示幾個圖標。但是,我無法像Facebook應用程序那樣讓他們以動畫形式打開他們的觀點。我已經試過:使TTLauncherView打開動畫項目

[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:@"sb://launcher"] applyAnimated:YES]]; 

以及

[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:URL.absoluteString] applyTransition:UIViewAnimationTransitionCurlDown]]; 

我也不能在此文件找到什麼:https://github.com/facebook/three20/blob/60340d76780ac5ab8a5dc853e3577b1c854eb6e0/src/Three20/TTNavigator.h

任何幫助嗎?

謝謝!

回答

4

這應該有效。我只是在我的代碼中嘗試了這個,並且curl down過渡像預期的那樣工作。這裏是一個被當用戶在啓動抽頭的圖標執行的代碼:

- (void)launcherView:(TTLauncherView*)launcher didSelectItem:(TTLauncherItem*)item { 
[[TTNavigator navigator] openURLAction:[[[TTURLAction actionWithURLPath:item.URL] applyTransition:UIViewAnimationTransitionCurlDown] applyAnimated:YES] ]; 

}

希望這有助於。