相机 照片获取

 UIImagePickerController * imagePickerController = [[UIImagePickerController alloc] init];
        if (buttonIndex==actionSheet.firstOtherButtonIndex+1) {
            imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
        }else{
            imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
        }
        
     
        imagePickerController.delegate = self;
        [self presentModalViewController:imagePickerController animated:YES];
        [imagePickerController release];
苏州-吹乐个球:  10:26:33
UIImagePickerControllerSourceTypePhotoLibrary
打开本地相册
UIImagePickerControllerSourceTypeCamera
打开相机

posted on 2012-06-18 14:07  甲骨魚  阅读(185)  评论(0编辑  收藏  举报

导航