I am using UIImagePicker to load an image that I have upload to the photo library (on my iPad), however it loads without the alpha channel. I have tripple checked to make sure the image has one. Unless it is removed when syncing to itunes?
Here is the code I am using for the image picker when it finishes picking:
-(void)imagePickerController: (UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
//dissmiss picker
[imagePopOver dismissPopoverAnimated:YES];
//get the picker image
UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
//create image view for selected image
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
imageView.frame = CGRectMake(0, 0, imageView.image.size.width, imageView.image.size.height);
imageView.center = CGPointMake(512, 384);
[imageLayer addSubview:imageView];
//release image and image view
[image release];
[imageView release];
}
What am I doing wrong? I hope this isn't a 'Doh!' moment.