Re: UIImageView source
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