[TIMOB-1190] Ti.UI.iPhone.SystemButton crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | crash, iphone, systembutton |
Reporter | wallneradam |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:46:17.000+0000 |
Updated | 2011-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);
(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...