Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11620

iOS 6: 'className' property is returned as TiUIObjectProxy

    Details

      Description

      Problem description

      On iOS 6, a 'className' property is returned as 'TiUIViewProxy' instead of its set value

      Steps to reproduce and sample code

      Create a View (for example) with a 'className' property, set to a string
      Result: instead of the string value, the property value is returned as TiUIViewProxy

      This is happening only on iOS 6. On iOS 5.1 the string value is returned.

      var win = Ti.UI.createWindow({
      	backgroundColor : "black",
      	navBarHidden : false,
      	title : "Main Window",
      });
       
      var view = Ti.UI.createView({
      	className : 'viewClassname',
      	height : 200,
      	width : 200,
      	id : 'viewID',
      	backgroundColor : 'orange'
      });
      Ti.API.info('#### view: ' + JSON.stringify(view));
       
      var label = Ti.UI.createLabel({
      	className : 'labelClassname',
      	text : 'Label',
      	color : 'orange',
      	top : 20
      });
      Ti.API.info('#### view: ' + JSON.stringify(label));
       
      win.add(view);
      win.add(label);
      win.open();
      

      Log:

      [INFO] #### view: {"className":"TiUIViewProxy","width":200,"horizontalWrap":true,"id":"viewID","backgroundColor":"orange","height":200}
      [INFO] #### view: {"className":"TiUILabelProxy","top":20,"horizontalWrap":true,"text":"Label","color":"orange"}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mstepanov Max Stepanov
                Reporter:
                fcasali Federico Casali
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14841
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration