title: How to add objects to an NSArray using for loop?
body: <p>I want to add the <code>[NSDecimalNumber numberWithInt:i]</code> to an array using for loop. </p>
  
  <p>It is hardcoded :</p>
  
  <pre><code> NSArray *customTickLocations = [NSArray arrayWithObjects: [NSDecimalNumber numberWithInt:1],[NSDecimalNumber numberWithInt:2],[NSDecimalNumber numberWithInt:3],[NSDecimalNumber numberWithInt:4],[NSDecimalNumber numberWithInt:5],[NSDecimalNumber numberWithInt:6],[NSDecimalNumber numberWithInt:7],[NSDecimalNumber numberWithInt:8],[NSDecimalNumber numberWithInt:9],[NSDecimalNumber numberWithInt:10],[NSDecimalNumber numberWithInt:11],[NSDecimalNumber numberWithInt:12],nil];
  </code></pre>
  
  <p>I want like this, but I can add only one object here....</p>
  
  <pre><code>for (int i=0; i&lt;totalImagesOnXaxis; i++)
  {
      customTickLocations = [NSArray arrayWithObject:[NSDecimalNumber numberWithInt:i]];
  }
  </code></pre>
  
  <p>Please help me out of this,
  Thanks in Advance,
  Madan</p>