Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6543] iOS: NavigationWindow close event not fired

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionWon't Do
Resolution Date2020-05-12T14:53:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reporterkoki_shigeyama
AssigneeAbir Mukherjee
Created2020-05-07T02:57:59.000+0000
Updated2020-05-12T14:53:01.000+0000

Description

process of our App change when we update SDK Version from 7.4.2 to 8.3.1. The view was shown as soon as open() was called by SDK 7.4.2 when we run app on debugger.
function viewOpen() {
  var dummyController = Alloy.createController('dummy', {});
  dummyController.getView().open(); *open method
  ・・・heavy process・・・
}
But the view was shown after viewOpen() by SDK 8.3.1. How can it be solved?

Comments

  1. Rene Pot 2020-05-12

    Your title and description seem completely unrelated. To answer the question in your description, for any heavy action, wait until the UI is rendered (use postlayout event, and keep in mind the event can fire more than once), and do the heavy action after. But... try to prevent doing anything heavy, and/or refactor it so it is chopped into smaller lighter processes. However, as also mentioned on your other ticket, JIRA is not intended as a Q&A. I'm going to close this ticket, and if you need more information ask on https://tislack.org in the #helpme channel

JSON Source