Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2720] iOS: Window from URL not loaded "before" it opens

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-03T22:58:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterMartin Guillon
AssigneeMauro Parra-Miranda
Created2013-01-18T00:29:41.000+0000
Updated2016-03-08T07:41:50.000+0000

Description

If you run Kitchen Sink on a device (iPhone 4 in my case, not SO fast) and navigate to Table Views, you will see that the table views open "after" the PushViewController animation. I think this is due to the fact that the code is in a different context (loaded with URL). If you look at the code, the KrollBridge evaluates the JS file for the window only in the UINavigationController delegate method "willShowViewController". We should make so that the window is already loaded upon opening. To do that we should make sure that the JS is evaluated sooner, somewhere in the "open" method.

Comments

  1. Jamie Buckley 2013-04-03

    Hi Martin, Can you provide a small reproducible test case that demonstrates this issue. Regards, Jamie
  2. Martin Guillon 2013-04-04

    That s gonna be tough Jamie, It all depends on how fast the app is. Have you tried with KS on an iphone 4? It would be nice if you could try first, see if you "see" this behavior. If not i will try and make a test case (don't really have time right now). Thanks

JSON Source