Problem
When ADD system button is added to anything other than toolbar/navbars, it appears as INFO !!!
In the following test case and attached image capture, you may notice that I created two ADD buttons, one for view, the other for toolbar. Both are ' Ti.UI.iPhone.SystemButton.ADD '. The icon is clearly the INFO button! However, it is the only possible way to add system buttons to view and this feature is quite common everywhere.
Against all odds, this bug may be a workaround to the other bug I reported (TIMOB-16941). But it is another separate bug for the ADD system button.
Test case
//Application Window Component Constructor
function ApplicationWindow() {
//load component dependencies
var FirstView = require('ui/common/FirstView');
//create component instance
var self = Ti.UI.createWindow({
backgroundColor:'#ffffff'
});
//construct UI
var firstView = new FirstView();
self.add(firstView);
var button1 = Titanium.UI.createButton({
bottom : 64,
left : 16,
style : Ti.UI.iPhone.SystemButton.ADD,
});
self.add(button1);
var button2 = Titanium.UI.createButton({
systemButton : Ti.UI.iPhone.SystemButton.ADD,
});
var toolbar = Titanium.UI.iOS.createToolbar({
items : [button2],
bottom : 0,
borderTop : true,
borderBottom : true
});
self.add(toolbar);
return self;
}
//make constructor function the public component interface
module.exports = ApplicationWindow;
Hi, Based on our doc, [http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPhone.SystemButton-property-ADD] "Use with Button.systemButton to specify an Add button. The resulting button can only be used in navigation bars and toolbars." Regards Shuo
You're right, the correct one would be CONTACT_ADD for views. But I would suggest issuing an error or warning rather than showing a different completely icon.