[英]how to work with choose button in UIImagePickerController in iPhone library
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 您好,我是iPhone编程的新手。在这里,我正在使用UIImagePickerController选择iPhone库,但是如果我单击选择按钮,则无法使用UIImagePickerController中的选择按钮。因此任何人都可以帮忙解决这个问题
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. 确保将委托设置为self时,确保已实现UIImagePickerControllerDelegate方法。
Here's a simple & great tutorial for the basics: 这是一个简单而出色的基础教程:
http://iphone.zcentric.com/2008/08/28/using-a-uiimagepickercontroller/ 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 http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html#//apple_ref/doc/uid/TP40010406-SW1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.