iOS实现连拍功能
2020年02月15日
作者:佚名
下面是来客网 jb51.cc 通过网络收集整理的代码片段。
来客网小编现在分享给大家,也给大家做个参考。
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)selectedImage editingInfo:(NSDictionary *)editingInfo { NSData *data; if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypePhotoLibrary]) { // Set source to the Photo Library picker.sourceType =UIImagePickerControllerSourceTypePhotoLibrary; if (selectedImage) { // save image } if (pickerController == picker) {//这里的条件随便你自己定义了 //**主要就是下面这句话,会让你继续回到take camera的页面 pickerController.sourceType = UIImagePickerControllerSourceTypeCamera; } else { [picker dismissModalViewControllerAnimated:YES]; } } }
以上是来客网(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。
以上是来客网为你收集整理的iOS实现连拍功能全部内容,希望文章能够帮你解决iOS实现连拍功能所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。