Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17355] iOS: SystemButton cannot be changed after creation

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionWon't Fix
Resolution Date2017-07-08T22:21:30.000+0000
Affected Version/sRelease 3.2.3, Release 3.3.0
Fix Version/sn/a
ComponentsiOS
LabelsTCSupport, systemButton
ReporterFokke Zandbergen
AssigneeUnknown
Created2014-07-18T06:51:20.000+0000
Updated2018-08-02T22:20:07.000+0000

Description

Problem Description

The following code demonstrates that the systemButton property cannot be changed after creation. This is not documented and of course it would be even better if it *could* be changed.

Testing Environment:

Titanium SDK: 3.2.3.GA and 3.3.0.GA Titanium CLI: 3.3.0 OS X Version: 10.9.3 IOS Simulator: 7.1

TEST CODE:

app.js
var btn = Ti.UI.createButton({
systemButton : Ti.UI.iPhone.SystemButton.ADD
});
 
var win = Ti.UI.createWindow({
backgroundColor : 'white',
rightNavButton : btn,
title : 'Click the button'
});
 
var nw = Ti.UI.iOS.createNavigationWindow({
window : win
});
 
btn.addEventListener('click', function(e) {
//console.debug('clicked but not changed');
console.info('clicked but not changed');
btn.systemButton = Ti.UI.iPhone.SystemButton.ACTION;
});
 
nw.open();
 

STEPS TO REPRODUCE:

- Create a simple project. - Update this code in app.js - Run this with testing environment. - Click to the systemButton or ADD button.

TESTING RESULT:

There is no any change in the systemButton or ADD button.

Comments

  1. Mauro Parra-Miranda 2014-07-21

    Thanks for your report! The Platform team will set the priority.
  2. Shameer Jan 2014-08-13

    Issue reproduce Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.3.0.GA iOS SDK: 7.1 iOS iPhone Simulator: 7.1
  3. Hans Knöchel 2017-07-08

    There is an internal constraint to not allow the system-button to be changed after creation. It is advised to change the button instead.
  4. Eric Merriman 2018-08-02

    Closing old "Won't fix" tickets. If you disagree, please reopen.

JSON Source