开发者

how to work with choose button in UIImagePickerController in iPhone library

开发者 https://www.devze.com 2023-03-30 22:39 出处:网络
hi i am new to iPhone programming .here i am choo开发者_如何学Gosing the iPhone library with UIImagePickerController ,but if i click on choose button it is not working how to work with that choose but

hi i am new to iPhone programming .here i am choo开发者_如何学Gosing 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]; 


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:

http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html#//apple_ref/doc/uid/TP40010406-SW1

0

精彩评论

暂无评论...
验证码 换一张
取 消