title: UIImageView not appearing
body: <p>I am trying to work with a UIImageView programmatically and can't get it to appear on the screen.  In my header I have the following lines:</p>
  
  <pre><code>@interface myClass : UIView {
      UIImageView *imageView;
  }
  @property (nonatomic, readonly) IBOutlet UIImageView *imageView;
  </code></pre>
  
  <p>Then in my <code>viewWillAppear</code> I have the following:</p>
  
  <pre><code>self.imageView.frame = CGRectMake(10, 10, 72, 72);
  self.imageView.backgroundColor = [UIColor redColor];
  [self.imageView setImage:[UIImage imageNamed:@"test-image.png"]];
  [containerView addSubview:self.imageView];
  </code></pre>
  
  <p>And this doesn't work at all.  If I add the following lines in <code>viewWillAppear</code> I can get a UIImageView to appear:</p>
  
  <pre><code>UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"blue_button_bg.png"]];
  [containerView addSubview:imgView];
  </code></pre>
  
  <p>So I can't make sense of why instantiating a UIImageView would work but using the class's ivar would not.  What am I doing wrong here?</p>
  
  <p>Thank you very much!</p>