相机 照片获取
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
打开相机