title: Using tags in iphone programming--can someone explain?
body: <p>I've seen people using tags in iphone programming, like inside labels or tableview cells:</p>
  
  <p>name.tag = kNameTag</p>
  
  <p>Can someone explain with an example how these tags might be used?  I gather that it's so that you can refer to a ui element later?  Like if you programmatically use a for loop to create an array of UIButtons onto the iphone screen, do you assign tags to each button within the for loop or something?</p>
  
  <p>Thanks!</p>