简体   繁体   English

如何使用iPhone库中的UIImagePickerController中的选择按钮

[英]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.

相关问题 UIImagePickerController:“选择/播放”库中的视频在iPhone Simulator上不起作用 - UIImagePickerController: “choose/play” a video from the library does not work on iPhone Simulator 如何在UIImagePickerController上添加照片库按钮? - How to add photo library button on a UIImagePickerController? iPhone SDK - 如何在UIImagePickerController中禁用图片预览? - iPhone SDK - How to disable the picture preview in UIImagePickerController? 如何在iPhone的UIImagePickerController中捕获视频的缩略图 - how to capture the thumnail of the video in UIImagePickerController in iphone 如何在iPhone中使用移动和缩放UIImagePickerController? - How to use move and scale UIImagePickerController in iPhone? iPhone:UIImagePickerController如何获取选择器控件的缩略图 - iphone: UIImagePickerController how to get the thumbnail for the picker control iPhone-UIImagePickerController-如何允许用户选择来源? - iPhone - UIImagePickerController - How to allow user to pick the source? iPhone 相机 - 从库中选择或拍照 - iPhone Camera - Choose from Library or Take Photo 如何开发iPhone应用程序以与当前iPhone的音乐库配合使用 - How to develop an iPhone app to work with the current iPhone's music library iPhone UIImagePickerController问题:按下“使用”按钮后想要显示UIActivityIndi​​catorView - iPhone UIImagePickerController problem: want to show UIActivityIndicatorView after hit “Use” button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM