[TIMOB-14342] iOS: UI.iPhone.NavigationGroup - Support custom window transitions/animations
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-09-24T17:10:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | NavigationGroup, iOS, ios7 |
Reporter | Ronald Treur |
Assignee | Ingo Muschenetz |
Created | 2013-06-21T13:14:02.000+0000 |
Updated | 2017-03-22T22:26:54.000+0000 |
Description
Most apps will want to incorporate iOS' standard Navigation Bar in their apps.
One of two ways to include the Navigation Bar is by using a NavigationGroup to wrap your windows. Opening (or closing) a new window either uses the default left-right sliding animation, or no animation at all.
I know that the underlying, native UINavigationController works identically in this regard. Interestingly, in native land people seem to be having found ways to use custom animations for window transitions nonetheless. I would very much like to have this flexibility in Titanium as well.
My Cocoa/ObjectiveC knowledge is lacking, so I don't know how solid these workarounds are, but below is a list of some of the results that came up while searching the web:
* http://stackoverflow.com/questions/2215672/how-to-change-the-push-and-pop-animations-in-a-navigation-based-app
* http://stackoverflow.com/questions/1406037/custom-animation-for-pushing-a-uiviewcontroller
* http://stackoverflow.com/questions/2001466/changing-the-animation-for-uinavigationcontroller-navigationbar
* https://gist.github.com/nvln/1831040
These constructions all either seem to use mechanisms that are not supported, or properties that are not exposed via Titanium.
Perhaps there is more optimal way of introducing custom transitions, I leave that to you. My questions is: Would it be possible for you to implement a way for us developers to get custom transitions into our apps, while still using the NavigationGroup?
[~iotashan] Is there a reason you tagged it as iOS 7? We removed it for now, but we can add it back again.
Because of the new iOS 7 APIs? From Apple's Docs: {quote}In iOS 7, view controllers can support custom animated transitions between views. In addition, you can use iOS 7 APIs to support user interaction during an animated transition. To learn more, see UIViewControllerAnimatedTransitioning Protocol Reference and UIViewControllerInteractiveTransitioning Protocol Reference.{quote}
Thanks. I've re-added the label.
Closing ticket as duplicate and links to the related ticket have been provided above.