Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2437] SystemButtonStyle.BAR and SystemButtonStyle.DONE have same value

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-02-02T01:09:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMichael Rushton
AssigneeShak Hossain
Created2013-01-11T03:56:15.000+0000
Updated2016-03-08T07:41:28.000+0000

Description

Ti.UI.iPhone.SystemButtonStyle.BAR and Ti.UI.iPhone.SystemButtonStyle.DONE both have integer value 2.

Comments

  1. Eduardo Gomez 2013-01-28

    What iOS version was this tested on? (either simulator or actual device) Hope hearing from you soon, Michael.
  2. Michael Rushton 2013-01-29

    Hi, sorry, it was iOS 6.
  3. Eduardo Gomez 2013-01-29

    Thanks Michael, I'm not entirely sure to follow here. From docs a [BAR](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.SystemButtonStyle-property-BAR) is used with ButtonBar or TabbedBar only and, [DONE](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.SystemButtonStyle-property-DONE) is used in toolbars and navigation bars, which means constant value is for one of each item. What UI object do you use? Is there a conflict with contants being mixed up? Can you please post a simple sample so I can understand better.
  4. Eduardo Gomez 2013-02-02

    We can't escalate incomplete issues. Please review and complete [Jira checklist](http://docs.appcelerator.com/titanium/latest/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-JIRATicketChecklist).
  5. Mostafizur Rahman 2014-01-07

    Hello, We test this issue with the test code below and reproduced the reported scenario. However, it is not a Titanium bug. As per our documentation [SystemButtonStyle.BAR | http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.SystemButtonStyle-property-BAR] and [SystemButtonStyle.DONE | http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iPhone.SystemButtonStyle-property-DONE] are same but have different usages.

    Test Environment:

    Mac OS X 10.8.6 Ti SDK 3.2.0.GA Ti CLI 3.2.0 IOS simulator 7.0.3

    Test Code

       var win = Titanium.UI.createWindow({  
           title:'Audio Test',
           backgroundColor:'#fff',
           layout: 'vertical'
       });
        
       // Create tabbed Bar
        
       var bb1 = Titanium.UI.createTabbedBar({
           labels:['One', 'Two', 'Three'],
           backgroundColor:'#336699',
           top:50,
           style: Ti.UI.iPhone.SystemButtonStyle.BAR,
           height:25,
           width:200
       });
        
       // Create button using Ti.UI.iPhone.SystemButtonStyle.DONE
       var backButton = Titanium.UI.createButton({
               style:  Ti.UI.iPhone.SystemButtonStyle.DONE,
               title: "Back",     
               width: 100,
               backgroundColor:'pink',
           });
           
        // Show same value in Ti.api.info
        
       Ti.API.info(' Bar Value '+bb1.style);
       Ti.API.info('DoneValue '+backButton.style);
        
       // Add to parent
          
       win.add(backButton);
       win.add(bb1);
       win.open();
       
    Thanks
  6. Shak Hossain 2014-01-15

    Invalid issue.

JSON Source