HI Guys:

My iphone app Interface Orientation is landscape.
I need load  a picture to my app. so. I use 


if ([UIImagePickerController isSourceTypeAvailable:
UIImagePickerControllerSourceTypePhotoLibrary]) {
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
}


[self presentModalViewController:picker animated:YES];


- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingImage:(UIImage *)image
 editingInfo:(NSDictionary *)editingInfo {
UIImage *pickedImage =[[UIImage alloc] initWithCGImage:image.CGImage];
UIImage *newImage = [self newAdjustSize:pickedImage];
[pickedImage release];
}


- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
    [picker dismissModalViewControllerAnimated:YES];
}


but. The UIImagePickerController Interface Orientation is Portrait.
I hope the UIImagePickercontrooler Interface Orientation is Landscape.
How do it.


Thanks 
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to