0
当我在相机上使用allowsEditing = NO时,它工作正常。如果UIImagePickerControllerSourceTypePhotoLibrary允许NO
作品:
if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
{
if(imagePicker == nil) imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePicker.allowsEditing = NO;
[self presentViewController:imagePicker animated:YES completion:nil];
}
但是,如果我试图把它的相片库我仍然得到allowsEditing YES。
不起作用:
if([UIImagePickerController UIImagePickerControllerSourceTypePhotoLibrary])
{
if(imagePicker == nil) imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imagePicker.allowsEditing = NO;
[self presentViewController:imagePicker animated:YES completion:nil];
}
任何想法?
我已经有这个,因为它是在我想要的时候,它是在cameramode。 – hugocarlmartin 2013-04-08 09:40:31
我一直在主演代码。我看着错误的方法。一切都很好。谢谢您的帮助。 – hugocarlmartin 2013-04-08 10:00:01
@hugocarlmartin任何时候哥们:) – Rushabh 2013-04-08 10:09:56