How to use Photo Albums of the landscape mode iphone app

  • 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
  • On Sun, 20 Feb 2011 10:08:07 +0800 (CST), =?GBK?B?zuLD9w==?= <wuminghuiqwe...> said:
    > I hope the UIImagePickercontrooler Interface Orientation is Landscape.
    > How do it.
    >

    If this is really important to you, you'll have to make your own image picker. This is possible in iOS 4 thanks to the Assets Library framework. One of the WWDC 2010 videos is devoted to this very topic. m.

    --
    matt neuburg, phd = <matt...>, <http://www.apeth.net/matt/>
    A fool + a tool + an autorelease pool = cool!
    AppleScript: the Definitive Guide - Second Edition!
    previous month february 2011 next month
    MTWTFSS
      1 2 3 4 5 6
    7 8 9 10 11 12 13
    14 15 16 17 18 19 20
    21 22 23 24 25 26 27
    28            
    Go to today