UILabel setText Method?!?!

Discussion in 'iOS Programming' started by littletone2002, May 31, 2010.

  1. littletone2002 macrumors newbie

    Joined:
    May 31, 2010
    #1
    Straight and to the point:

    I'm trying to update the text in a UILabel and I know this code works:

    Code:
     
    [myLabel setText:@"Hello World"];
    
    but I only know it works because I saw it done, where can I find the documentation on the setText method for UILabel, I looked at the developer documentation for the UIlabel class here. But i see no mention of setText in it or in any of its inherited classes.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    It's declared as a @property text, which at compile time creates the setText method.
     
  3. simon-says macrumors regular

    Joined:
    May 24, 2005
    Location:
    Louisiana
    #3

Share This Page