关于UIImagePickerController问题

在照相机中使用 allowsEditing = 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];
}

各位有什么好建议么?谢谢您的解答。

查看全部
DaffodilGirl
DaffodilGirl
2013/04/09 03:19
  • ios
  • iphone
  • cocoa
  • 点赞
  • 收藏
  • 回答
    私信

0个回复