首页 > 移动平台 > 详细

IOS - ImagePicker 连拍

时间:2014-09-13 21:19:05      阅读:357      评论:0      收藏:0      [点我收藏+]

- (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];  

          }  

      }  

}  

IOS - ImagePicker 连拍

原文:http://www.cnblogs.com/tx8899/p/3970320.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!