Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Silly question about labels.

I have a bit of simple code that on the change of a picker value. It is supposed to update a label.text.

I can read the value, but for some reason, I cannot update it..

label.text isn't read only, is it?

— asked October 11th 2010 by Critter
  • iphone
  • labels
0 Comments

3 Answers

  • Howdy. Should be writable. I just did that this last weekend for the first time. :)

    thelabel.text = "I'm changed!";
    

    Hope that helps a touch.

    Chris

    — answered October 11th 2010 by Christopher Stevens
    permalink
    1 Comment
    • maybe give it an initial blank value first on creation, like text:""? I'm just curious myself to see if that makes a difference.

      — commented October 11th 2010 by Christopher Stevens
  • yeah.. that's what I've got.. it's not updating the label…

    wonder if it has to do with the layering hmm weird.

    thanks

    — answered October 11th 2010 by Critter
    permalink
    0 Comments
  • Interesting find…

    I have a set of 12 views that are scrollable. There is a picker on each view, but it's getting confused. with the label it's supposed to be updating or something… When I limit the view count to 1.. the code works as it should be..

    any suggestions anyone?

    — answered October 11th 2010 by Critter
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.