0
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
switch (buttonIndex) {
case 0:
{
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePicker.cameraDevice = UIImagePickerControllerCameraDeviceFront;
[self presentViewController:imagePicker animated:YES completion:nil];
}
break;
case 1:
{
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:imagePicker animated:YES completion:nil];
}
break;
case 2:
{
[actionSheet removeFromSuperview];
}
break;
default:
break;
}
}
當我拍照不能拖動照片,但照片UIImagePickerControllerSourceTypePhotoLibrary
可以編輯的UIImagePickerController allowsEditing = YES不工作
它不起作用,謝謝你們一樣 – liuqing