title: How to add objects in NSMutableArray with for loop?
body: <p>Here, the issue is nothing but I don't know much about <code>objectiveC</code>. So the query is that I am working on a project where user taps on Image and with <code>UITapGestureRecognizer</code> I have to store that tapped position in my <code>array</code>. I don't know how is this possible that every time user taps the <code>view</code> and <code>CGPoint</code> value gets stored in <code>NSMutableArray</code>.</p>
  <pre><code>dataArray = [[NSMutableArray alloc] init];
  for (NSInteger i = 0; i &lt; [getResults count]; i++) {
  
  [dataArray addObject:tappedPoint];
  NSLog(@&quot;RESULT TEST %@&quot;, dataArray);
  }
  </code></pre>