title: How to create a new UIImageView with a different instance variable every time a timer is called
body: <p>how are you guy's?</p>
  
  <p>I want to make a new instance variable every time a timer is called for e.g.</p>
  
  <pre><code>        numberofObjects += 1;
      i = numberofObjects;
  
      UIImageView *Object[i] = [[UIImageView alloc] initWithFrame:CGRectMake(randomx,0,36 ,36)];        
      UIImage *imag = [UIImage imageNamed:@"ball.png"];
      [Object[i] setImage:imag];
      [self.view addSubview:Object[i]];
  </code></pre>
  
  <p>Is there a way to do this?</p>
  
  <p>Any comments will be appreciated.</p>