• 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
Re: UIImageView source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIImageView source


  • Subject: Re: UIImageView source
  • From: Tan E-Liang <email@hidden>
  • Date: Thu, 2 Jul 2009 23:45:51 +0800

You could try this if you're lazy... Just call the presentImagePickerWithSource and choose your source type (camera or photo library)

- (void)presentImagePickerWithSource: (UIImagePickerControllerSourceType)sourceType {
pickerController = [[UIImagePickerController alloc]init];
pickerController.delegate = self;
pickerController.sourceType = sourceType;
[self presentModalViewController:pickerController animated:YES];
}



- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo {
imageView.image = image;
[picker dismissModalViewControllerAnimated:YES];
}


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


E-Liang

On Jul 2, 2009, at 11:33 PM, Development wrote:

I need to create a filebrowser of sorts that allows a user to select an image from the iPhone/iPod images directory. The same one that iPhone camera images are saved to preferably. Is there s built in method of doing this or perhaps some guidance I could get on how to select and set images from this directory?


April. _______________________________________________

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

_______________________________________________

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


References: 
 >UIImageView source (From: Development <email@hidden>)

  • Prev by Date: Re: User interface validation doesn't work, right?
  • Next by Date: Re: Setting a document's icon and default app
  • Previous by thread: Re: UIImageView source
  • Next by thread: NSDocument's -close method calls itself?
  • Index(es):
    • Date
    • Thread