title: Trying to create a rectangle filled with blue UIImage object
body: <p>I want to create a blue rectangle image and see it in my view, but this code doesn't seem to work: </p>
  
  <pre><code>  CGRect imageRect = CGRectMake(50, 50, 64, 40);
    UIGraphicsBeginImageContext(imageRect.size);
    [[UIColor blueColor] set];
    UIRectFill(imageRect);
    UIImage *aImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    UIImageView *myImageView = [[UIImageView alloc] initWithImage:aImage];
    [self.view addSubview:myImageView]; 
  </code></pre>
  
  <p>Can someone fix it for me?</p>
  
  <p>Thanks,</p>
  
  <p>Sagiftw</p>