Using the docs code as base and adding the events:
http://pastie.org/1937570
Now, in my iPad app I have windows working like that in the splitView. Problem is: the 'focus' and 'blur' events don't get fired when the root window of the navigation group is focused or blured.
This worked without any problems when using sdk Ti 1.6.2, now I'm with 1.7rc1.
Any ideas?
3 Answers
I think I found half the answer for this issue: It seems that the FOCUS doesn't get fired when it should be, but the OPEN event does. So by switching from focus to open should fix one problem. I'm still no sure how to fix the BLUR since it never gets fired.
Wow thanks for your tips I upgraded from 1.6.2 to 1.7.1 and my root/home window stopped firing the focus after the initial fire from the time the app opens.
I changed it to 'open' as you suggest and it now fires when I return to the root window from anywhere just like focus did in 1.6.2! Very odd that the SDK should change / stop the focus working considering the window must be focusing?
Thanks again, Dave
Hello,
if you want to make an "Open" transition on the root window of your NavGroup, the best solution is to do that : NavGroup : - 1 custom Listener for "open /close" new Window, each time you open a new window you animate your root window (opacity 0 for example) each time you close a window (opacity 1 for example)
Then you can custom your event if you have more than one level ...
Root Window : - 1 Listener for the open state (fired when you open the tabGroup) (used 1 time)
Child Window(s) : - 1 Listener for the "blur" - 1 Listener for the "focus"
If you use "Animated True" for the child windows the event "open" wil be fired two times, so, prefer just to track blur / focus and not "Open".
Hope it helps !
Your Answer
Think you can help? Login to answer this question!