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