{ "id": "170982", "key": "AC-5550", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-02-05T08:17:32.000+0000", "created": "2018-01-26T09:00:03.000+0000", "labels": [ "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-02-06T08:36:48.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When opening a second window in a navigation window with the same rightNavButton set as the first window, the button is faded out during opening and then reappears instantly when the second window is open. See attached screen recording.\r\n\r\nThis does not look nice and was not the behavior in previous versions of the Ti SDK, where the button did not fade out.\r\n\r\napp.js:\r\n\r\n{code:java}\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n \r\nvar win = Ti.UI.createWindow({\r\n rightNavButton: btn\r\n});\r\n \r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: win\r\n});\r\n \r\nbtn.addEventListener('click', function() {\r\n var win2 = Ti.UI.createWindow({\r\n backgroundColor: 'red',\r\n rightNavButton: btn\r\n });\r\n \r\n nav.openWindow(win2);\r\n});\r\n \r\nnav.open();\r\n{code}", "attachment": [ { "id": "64756", "filename": "RightNavButton.mov", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-26T08:59:55.000+0000", "size": 228941, "mimeType": "video/quicktime" }, { "id": "64794", "filename": "RightNavButton-SDK7.mov", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-01T20:45:09.000+0000", "size": 693261, "mimeType": "video/quicktime" }, { "id": "64761", "filename": "RightNavButton-Ti522-iOS93.mov", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-26T21:18:40.000+0000", "size": 288871, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS: rightNavButton blinks on navigation", "creator": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK 6.3.0\r\niOS SDK 11.2", "comment": { "comments": [ { "id": "433730", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there! Which kind of SDK-versions indicate that it was working? From your test-case, you are referencing one button for both scoped (two different windows) which should not be allowed. In any case, if you are able to provide more details on when it was working, we may be able to trace back the issue. [~vsingh] This seems related to what we talked about recently.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-26T18:16:13.000+0000", "updated": "2018-01-26T18:16:13.000+0000" }, { "id": "433738", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi. Thanks for your quick reply.\r\n\r\nIt works with Ti 5.2.2 and iOS SDK 9.3. See attached screen recording [^RightNavButton-Ti522-iOS93.mov].\r\n\r\nCould of course also be an iOS SDK behaviour change.\r\n\r\nAlso tried creating a separate button for the second window:\r\n{code}\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n \r\nvar win = Ti.UI.createWindow({\r\n rightNavButton: btn\r\n});\r\n \r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: win\r\n});\r\n \r\nbtn.addEventListener('click', function() {\r\n var btn2 = Ti.UI.createButton({\r\n title: 'Trigger'\r\n });\r\n\r\n var win2 = Ti.UI.createWindow({\r\n backgroundColor: 'red',\r\n rightNavButton: btn2\r\n });\r\n \r\n nav.openWindow(win2);\r\n});\r\n \r\nnav.open();\r\n{code}\r\nThe button also fades out and reappears with this code (with Ti 6.3.0 and iOS 11.2).", "updateAuthor": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-26T21:20:47.000+0000", "updated": "2018-01-26T21:31:29.000+0000" }, { "id": "433958", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've just tested on 7.0.1.GA and it seems to work fine, see {{RightNavButton-SDK7.mov}} for details. Let me know your thoughts! Please note that your env currently says 6.3.0 which does not officially support iOS 11.2.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-01T20:46:21.000+0000", "updated": "2018-02-01T20:46:21.000+0000" }, { "id": "433968", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "body": "The behavior in your screen recording is the same as in Ti SDK 6.3.0. The button of the first window fades out and the button on the second window appears instantly.\r\n\r\nThe thing is I want to have the same text (or icon) as a button in the navigation bar on the first and second window. Now if a button with the same text first fades out and then appears again instantly it looks funny.\r\n\r\nBut it may be a behavior change in the iOS SDK. I will still check this out on my side.", "updateAuthor": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-02T07:45:23.000+0000", "updated": "2018-02-02T07:45:23.000+0000" }, { "id": "434037", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~philet] We found out that this is an issue caused by 11.2 (same for native apps). Read more [here|https://stackoverflow.com/questions/47754472/ios-uinavigationbar-button-remains-faded-after-segue-back] and find a fix in TIMOB-25675, thanks to [~vijaysingh]!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-05T08:17:25.000+0000", "updated": "2018-02-05T08:17:25.000+0000" }, { "id": "434046", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "body": "The fix of TIMOB-25675 unfortunately does not solve my problem.\r\nI've tested it out with a native app too and the problem exists there too.\r\nSo this is a problem with iOS SDK 11.2 and not of the Ti SDK.\r\n", "updateAuthor": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-05T12:10:10.000+0000", "updated": "2018-02-05T12:10:10.000+0000" }, { "id": "434047", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~philet] So you applied the fix manually to your SDK in {{~/Library/Application Support/Titanium/mobilesdk/osx/7.0.1.GA/iphone/Classes/TiUIiOSNavWindowProxy.m}}, did a clean build and tested on iOS 11.2 afterwards? If so, you should file another radar at Apple about this. Interesting that they broke so many UINavigationBar related items in 11.2. We will eventually also file a radar for this, so Apple is able to prioritize the issue.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-05T12:49:32.000+0000", "updated": "2018-02-05T12:49:32.000+0000" }, { "id": "434073", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am still on Ti SDK 6.3.0. So I tested the fix there. I opened the generated iPhone project, applied the fix and ran the app directly from Xcode.\r\nOK, I will file a radar for this.", "updateAuthor": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-06T06:53:02.000+0000", "updated": "2018-02-06T06:53:02.000+0000" }, { "id": "434074", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks [~philet]! We'll try to reproduce it again anyway to ensure it's properly tracked here as well.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-06T08:36:48.000+0000", "updated": "2018-02-06T08:36:48.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }