Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20422] iOS: Ti.UI.iOS.SystemButton is undefined.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-02-18T02:00:43.000+0000
Affected Version/sRelease 5.1.2
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterShuo Liang
AssigneeChee Kiat Ng
Created2016-02-18T01:46:36.000+0000
Updated2016-02-18T02:00:43.000+0000

Description

Reproduce

According to the docs page (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPhone.SystemButton) Ti.UI.iPhone.SystemButton should be DEPRECATED, and we should use Ti.UI.iOS.SystemButton instead.But when doing test for this, Ti.UI.iOS.SystemButton is undefined, however, Ti.UI.iPhone.SystemButton works well.

Test Code

var win = Titanium.UI.createWindow({
    backgroundColor: 'white',
});

var done = Ti.UI.createButton({
	top: 20,
	title: 'Done', 
	systemButton: Ti.UI.iPhone.SystemButton.DONE;
        // systemButton: Ti.UI.iOS.SystemButton.DONE;
}); 

win.add(done);

Comments

  1. Shuo Liang 2016-02-18

    The Ti.UI.iOS.SystemButton will go production in SDK 5.4.0, there is something wrong with doc. Close this as fixed.

JSON Source