• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to use Photo Albums of the landscape mode iphone app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: mount .dmg and run file from there
  • Next by Date: NSDateFormatter initialization+formatting not working
  • Previous by thread: Re: mount .dmg and run file from there
  • Next by thread: Re: How to use Photo Albums of the landscape mode iphone app
  • Index(es):
    • Date
    • Thread