title: How to Concatenate String in Objective-C (iPhone)?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/510269/how-do-i-concatenate-strings-in-objective-c">How do I concatenate strings in Objective-C?</a>  </p>
  </blockquote>
  
  
  
  <p>Firstly, the platform is iPhone and label.text changes the label displayed. Consider this scenario:</p>
  
  <p>I've an array of integers. And I want to display it on the screen. </p>
  
  <p>Here's my take on it:</p>
  
  <pre><code>-(IBAction) updateText: (id)sender {
     int a[2];
     a[0]=1;
     a[1]=2;
     a[2]=3;
     for (int i=0; i&lt;=10;i++)
       label.text = [NSString stringByAppendingString: [NSString stringWithFormat: @"%i", a[i]]]; 
  }
  </code></pre>
  
  <p>As you can probably see, I'm pretty confused. Pls pls help me out :(</p>