title: iPhone App crashes with NSCFType setImage:forState
body: <p>I have an app where i capture image from camera and set it to button. </p>
  
  <p>So, after capturing image from camera and tap on use button, my app crashes with [NSCFType setImage:forstate] unrecognised instance </p>
  
  <pre><code> - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
     [picker dismissModalViewControllerAnimated:YES];
  
     UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
      UIImage *resizeImage = [image imageWithImage:image scaledToSize:CGSizeMake(320, 480)];    
  
     //convert the selected image to NSData
     toShowFullImage = UIImageJPEGRepresentation(resizeImage, 0.8);
  
      //retain it for further use 
      [toShowFullImage retain];
  
      //set the selected image to button
  
      UIImage *newimage=[image imageScaleAndCropToMaxSize:CGSizeMake(75, 75)];
  
      [button setImage:newimage forState:UIControlStateNormal];
  }
  </code></pre>
  
  <p>This crash occurs in iOS 6.0.1 with Abort trap 6 error</p>