title: Adding subviews programmatically positions them weirdly
body: <p>I have a view in which I want to add multiple subviews, however when I add them, they get positioned in positions where I didn't set the frame. The <code>x</code> coordinate is correct, but the <code>y</code> is quite off.</p>
  
  <p>Using the Interface Builder it went quite smooth, just drag them in and send the correct frame and origin. However I don't appear to be able to set the origin; I get <code>expression is not assignable</code> when I try <code>view.frame.origin = CGPointMake(x, y)</code>, and setting the <code>x</code> and <code>y</code> coordinates directly gives me the same error.</p>
  
  <p>Does this happens because subviews cannot overlap programmatically without setting a special attribute (that I'm missing)?</p>
  
  <p>Edit: The views are being set in the <code>initWithStyle</code> method of a UITableViewCell.</p>
  
  <p>Edit 2: Added code within <code>initWithStyle</code> method.</p>
  
  <pre><code>// Initialize images
  self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image"]];
  self.anImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"anImage"]];
  self.anotherImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"anotherImage"]];
  
  // Set imageview locations
  self.imageView.frame = CGRectMake(0, 0, 300, 54);
  self.anImageView.frame = CGRectMake(20, 53, 16, 52);
  self.anotherImageView.frame = CGRectMake(179, 43, 111, 53);
  </code></pre>