title: Invalid context when creating UIImageView
body: <p>I have an error when I tried to create a UIImageView.
  Look at this code :</p>
  
  <pre><code>UIImage* backgroundPanel = [[UIImage imageNamed:@"loginPanelBackground.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(90, 0, 149, 416)];
  
  self.connexionBackgroundImgView = [[UIImageView alloc] initWithImage:backgroundPanel];
  self.connexionBackgroundImgView.frame = CGRectMake(0, 0, 416, 390); // THIS LINE PROVOC THE INVALID CONTEXT
  [self.connexionView insertSubview:self.connexionBackgroundImgView aboveSubview:self.connexionToCreationCompteView];
  </code></pre>
  
  <p>It throws this error in the log :</p>
  
  <pre><code>&lt;Error&gt;: CGContextSaveGState: invalid context 0x0
  &lt;Error&gt;: CGContextSetBlendMode: invalid context 0x0
  &lt;Error&gt;: CGContextSetAlpha: invalid context 0x0
  &lt;Error&gt;: CGContextTranslateCTM: invalid context 0x0
  &lt;Error&gt;: CGContextScaleCTM: invalid context 0x0
  &lt;Error&gt;: CGContextGetCTM: invalid context 0x0
  &lt;Error&gt;: CGContextSaveGState: invalid context 0x0
  &lt;Error&gt;: CGContextClipToRect: invalid context 0x0
  &lt;Error&gt;: CGContextDrawTiledImage: invalid context 0x0
  &lt;Error&gt;: CGContextRestoreGState: invalid context 0x0
  &lt;Error&gt;: CGContextGetCTM: invalid context 0x0
  &lt;Error&gt;: CGContextSaveGState: invalid context 0x0
  &lt;Error&gt;: CGContextClipToRect: invalid context 0x0
  &lt;Error&gt;: CGContextDrawTiledImage: invalid context 0x0
  &lt;Error&gt;: CGContextRestoreGState: invalid context 0x0
  &lt;Error&gt;: CGContextGetCTM: invalid context 0x0
  &lt;Error&gt;: CGContextSaveGState: invalid context 0x0
  &lt;Error&gt;: CGContextClipToRect: invalid context 0x0
  &lt;Error&gt;: CGContextDrawTiledImage: invalid context 0x0
  &lt;Error&gt;: CGContextRestoreGState: invalid context 0x0
  &lt;Error&gt;: CGContextRestoreGState: invalid context 0x0
  </code></pre>
  
  <p>I had this error only on the iPad, not with the Simulator, I don't understand.. :/</p>