title: set a custom image size and location programmatically
body: <p>I'm trying to make a custom activity indicator and set the size and location to: 
  (x-coordinates 280; y-coordinates 5; height 34; width 34)
  I have the code: </p>
  
  <pre><code>UIImage *statusImage = [UIImage imageNamed:@"activity1.png"];
      UIImageView *activityImageView = [[UIImageView alloc]
                                        initWithImage:statusImage];
  
              activityImageView.animationImages = [NSArray arrayWithObjects:
                                           [UIImage imageNamed:@"activity1.png"],
                                           [UIImage imageNamed:@"activity2.png"],
                                           [UIImage imageNamed:@"activity3.png"],
                                           [UIImage imageNamed:@"activity4.png"],
                                           [UIImage imageNamed:@"activity5.png"],
                                           [UIImage imageNamed:@"activity6.png"],
                                           [UIImage imageNamed:@"activity7.png"],
                                           [UIImage imageNamed:@"activity8.png"],
                                           [UIImage imageNamed:@"activity9.png"],
                                           [UIImage imageNamed:@"activity10.png"],
                                           [UIImage imageNamed:@"activity11.png"],
                                           [UIImage imageNamed:@"activity12.png"],
                                           [UIImage imageNamed:@"activity13.png"],
                                           [UIImage imageNamed:@"activity14.png"],
                                           [UIImage imageNamed:@"activity15.png"],
                                           [UIImage imageNamed:@"activity16.png"],
                                           [UIImage imageNamed:@"activity17.png"],
                                           [UIImage imageNamed:@"activity18.png"],
                                           nil];
  
      activityImageView.animationDuration = 0.8;
  
      [activityImageView startAnimating];
  
      [self.view addSubview:activityImageView];
  </code></pre>
  
  <p>which makes the circle and understand I need the code: </p>
  
  <pre><code>activityImageView.frame = CGRectMake(
                                               self.view.frame.size.width/2
                                               -statusImage.size.width/2,
                                               self.view.frame.size.height/1.2
                                               -statusImage.size.width/1.2,
                                               statusImage.size.width,
                                               statusImage.size.height);
  </code></pre>
  
  <p>although my problem is I do not understand how to make the coordinates and size to what I want using this bit of code. Help much appreciated!</p>