[TIMOB-24843] iOS: When using "Ti.UI.NavigationWindow.popToRootWindow", fire "close" event for all sub-windows, cleanup proxy stack more properly
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 6.1.0, Release 6.0.4 |
Fix Version/s | n/a |
Components | iOS |
Labels | close, ios, navigationWindow |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2017-06-17T13:17:14.000+0000 |
Updated | 2018-02-28T19:55:55.000+0000 |
Description
We introduced the
popToRootWindow
in 6.0.0 (TIMOB-23567) to allow the user to close all windows of a Ti.UI.iOS.NavigationWindow
at once. While that works pretty well, the proxies behind the closed windows might still be active, causing a possible memory leak.
Another thing is that, currently, only the close
event of the latest window is triggered, which is aligned to the native behavior of the viewDidDisappear
delegate method. So firing all close events would be an improvement for more specific window-control.
So the changes described in this ticket are:
1. Fire the close
event on all pushed windows of the nav-window
2. Cleanup all window-proxies after calling the internal API to improve the memory-management when using the method
(Created per discussion in TIMOB-23567)
No comments