Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1190] Ti.UI.iPhone.SystemButton crash

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelscrash, iphone, systembutton
Reporterwallneradam
AssigneeReggie Seagraves
Created2011-04-15T02:46:17.000+0000
Updated2011-04-17T01:55:28.000+0000

Description

When I use a SystemButtom on iPhone and want to enable/disable it, the application will crash. The crash depends on the type of the SystemButton.

The buttons I've tested and cause crash:
SPINNER, CONTACT_ADD, DISCLOSURE, INFO_DARK, INFO_LIGHT (the newer buttons in the TiUISystemButtonProxy.h)

The code to test:

var tabGroup = Ti.UI.createTabGroup();

var w = Ti.UI.createWindow({});
var btnAdd = Ti.UI.createButton({
    systemButton: Ti.UI.iPhone.SystemButton.CONTACT_ADD,
    enabled: false
});
w.setRightNavButton(btnAdd);

tabTest = Ti.UI.createTab({
    title:'Test',
    window: w
});
tabGroup.addTab(tabTest);

tabGroup.open({transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});

setTimeout(function(){
    btnAdd.enabled = true;
}, 3000);

Comments

  1. Jeff Haynie 2011-04-15

    (from [8dbc5488c5a061bc8e28a8a7f31fff6894d53f07]) [#1190 state:resolved] fixed problem with enabling button in navbar http://github.com/appcelerator/titanium_mobile/commit/8dbc5488c5a061bc8e28a8a7f31fff6894d53f07"> http://github.com/appcelerator/titanium_mobile/commit/8dbc5488c5a06...

JSON Source