IOS - ImagePicker 连拍
- (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];
}
}
}
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。