How to use Photo Albums of the landscape mode iphone app
How to use Photo Albums of the landscape mode iphone app
- Subject: How to use Photo Albums of the landscape mode iphone app
- From: 吴明 <email@hidden>
- Date: Sun, 20 Feb 2011 10:08:07 +0800 (CST)
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 (email@hidden)
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:
This email sent to email@hidden