title: objective c dynamic value assign
body: <pre><code>NSString *one = [NSDictionary dictionaryWithObjectsAndKeys:@"1",@"id",@"Test1",@"text", nil];
      NSString *two = [NSDictionary dictionaryWithObjectsAndKeys:@"2",@"id",@"Test2",@"text", nil];
      NSString *three = [NSDictionary dictionaryWithObjectsAndKeys:@"3",@"id",@"Test3",@"text", nil];
  
      _options = [NSArray arrayWithObjects:one,two,three,nil];
  </code></pre>
  
  <p>This is the code i am using and running properly in my code. Now i want it dynamically, like </p>
  
  <pre><code>int total = 20;
      NSMutableArray *arr = [[NSMutableArray alloc] init];
      for(int x = 0; x &lt; total; x++)
      {
          [arr addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"1",@"id",@"Test1",@"text", nil]];
      }
  </code></pre>
  
  <p>But it's not working. Can anyone help me out of this.</p>
  
  <p>The main code is like</p>
  
  <pre><code>_options = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:@"1",@"id",@"Test1",@"text", nil],[NSDictionary dictionaryWithObjectsAndKeys:@"1",@"id",@"Test1",@"text", nil],[NSDictionary dictionaryWithObjectsAndKeys:@"1",@"id",@"Test1",@"text", nil],nil];
  </code></pre>
  
  <p>and i want to create it dynamically ,like the value will go for 1-100. How can i do that</p>