Reputation: 307
hi i am new to iPhone programming .here i am choosing the iPhone library with UIImagePickerController ,but if i click on choose button it is not working how to work with that choose button in UIImagePickerController .So any one can help out this Thanks in Advance
videoPickerCtrl=[[UIImagePickerController alloc] init];
videoPickerCtrl.delegate=self;
videoPickerCtrl.mediaTypes =[UIImagePickerController availableMediaTypesForSourceType:videoPickerCtrl.sourceType];
videoPickerCtrl.allowsEditing = NO;
[self presentModalViewController:videoPickerCtrl animated:YES];
Upvotes: 0
Views: 890
Reputation: 4607
Makre sure you implemented the UIImagePickerControllerDelegate methods, as you are setting the delegate to self.
Here's a simple & great tutorial for the basics:
http://iphone.zcentric.com/2008/08/28/using-a-uiimagepickercontroller/
and here's a good one from apple:
Upvotes: 1