[TIMOB-1553] iOS: Navigating back in a navigationGroup makes the leftNavButton fade-in twice
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-06-25T13:30:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.1.0 |
Components | iOS |
Labels | module_navgroup, qe-testadded |
Reporter | Sindre Sorhus |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:55:51.000+0000 |
Updated | 2012-07-11T13:59:13.000+0000 |
Description
Sample code from pastebin: http://pastebin.com/QeeGwMtF
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Ti.UI.setBackgroundColor('#000');
// refresh button
var refreshButton = Ti.UI.createButton({
systemButton: Titanium.UI.iPhone.SystemButton.REFRESH
});
// add button
var addButton = Ti.UI.createButton({
systemButton: Titanium.UI.iPhone.SystemButton.ADD
});
// create navgroup
var win = Ti.UI.createWindow();
var win1 = Ti.UI.createWindow({
title: 'test',
leftNavButton: refreshButton,
rightNavButton: addButton
});
var nav = Ti.UI.iPhone.createNavigationGroup({
window: win1
});
win.add(nav);
win.open();
addButton.addEventListener('click', function() {
var addWindow = Ti.UI.createWindow();
nav.open(addWindow, {
animated: true
});
});
Click the + button, then click Back, and see the leftNavButton fade-in twice.
There is a Helpdesk ticket reporting this problem: http://developer.appcelerator.com/helpdesk/view/75911">http://developer.appcelerator.com/helpdesk/view/75911
Here is a simple runnable example:
Tested on 1.6 Resease
iPad and iPhone simulator 4.2
Moving navigation issues to Sprint 16.
Bug is still valid, occurs in: TiMOB sdk version: 1.8.0.v20111028154620 Studio version: 1.0.6.201110251616 OS version: Mac OS X Lion Devices tested on: ipad 4.3.5, iphone simulator 4.3 Note: Verified this bug does not appear in TiMOB sdk 1.7.4
Any updates?
This issue has been fixed as a part of some other fix. It is very possible that this fix is available in releases prior to 2.1.0 release.
Verified fix with: Titanium Studio, build: 2.1.0.201206251749 Titanium SDK: 2.1.0.v20120628121617 Devices: 3GS 4.3, 4S 5.0.1