是否可以更改UINavigationController的popToViewController過渡樣式?我需要與pushViewController方法相同的樣式嗎?(我的意思是從右到左樣式(pushViewController),而不是從左到右(默認情況下是popToViewController))。navigationController設置彈出過渡樣式
0
A
回答
1
對於模態表示的視圖控制器,您可以使用modalTransitionStyle屬性更改動畫。 AFAIK,沒有辦法改變導航控制器的推動動畫(從零開始重建UINavigationController)。 https://github.com/devindoty/iOS-Transition-Pack
OR
[UIView beginAnimations:@"animation" context:nil];
[self.navigationController pushViewController: yourviewcontroller animated:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navigationController.view cache:NO];
[UIView commitAnimations];
相關問題
- 1. 彈出一個NavigationController
- 2. IPhone SDK - 過渡到NavigationController顯示問題
- 3. 更好NavigationController過渡使用TTURLAction
- 4. 如何通過UINavigationController設置navigationController?
- 5. 故事板中UITabBar的過渡樣式
- 6. 設置「彈出」WPF
- 7. 設置彈出的位置
- 8. 設置彈出位置
- 9. 延遲navigationController彈出detailView的UITableView
- 10. 如何在沒有NavigationController時彈出UIViewController?
- 11. NavigationController沒有彈出後退按鈕
- 12. 的jQuery的fancybox改變過渡設置
- 13. 將CSS3過渡設置爲無
- 14. 無法通過樣式設置DependencyProperty值
- 15. 通過樣式設置隱藏的AttachedProperty
- 16. Android設置和設置彈出菜單
- 17. 彈出窗口關閉後彈出窗口獲取觸發器的CSS過渡
- 18. 添加過渡效果,而不使用navigationController- IOS
- 19. JSF在樣式表中設置樣式?
- 20. Mapbox GL - 如何爲複雜彈出窗口設置常用樣式
- 21. 如何在提交按鈕上設置JavaScript彈出確認窗口的樣式?
- 22. 如何在引導彈出窗口中設置箭頭的樣式?
- 23. 適用於YouTube彈出窗口彈出窗口的樣式
- 24. 在PyQt中爲QCompleter的彈出窗口設計樣式
- 25. 如何設置彈出式退出按鈕
- 26. 如何樣式Facebook贊評論通過鏈接彈出?
- 27. Win7的系統托盤樣式彈出
- 28. Android:彈出對話框樣式窗口
- 29. 彈出菜單樣式問題
- 30. 谷歌搜索結果樣式彈出
檢查這個http://stackoverflow.com/questions/9480458/change-animation-transition – Matt 2012-07-16 06:29:19
感謝,但它只是改變了過渡動畫。我需要與推式風格相同的流行風格轉換。 – 2012-07-16 06:48:32
[如何在基於導航的應用程序中更改Push和Pop動畫]的可能重複(http://stackoverflow.com/questions/2215672/how-to-change-the-push-and-pop-animations-in- a-navigation-based-app) – Monolo 2012-07-16 08:27:28