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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/gnaileliang%40gmail.com
This email sent to gnaileli...@gmail.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com