Ответ 1
Вам просто нужно написать следующую строку кода.
UIImage *image = [info valueForKey:UIImagePickerControllerEditedImage];
Я увидел этот вопрос здесь: UIImagePicker разрешает устанавливать заставку в центре
Кажется, у кого-то была эта проблема раньше, но нет четкого разрешения.
Этапы воспроизведения:
Я нахожусь на iOS 7.0.3.
Здесь мой код:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.modalPresentationStyle = UIModalPresentationCurrentContext;
imagePicker.allowsEditing = YES;
[self presentViewController:imagePicker animated:YES completion:nil];
Вам просто нужно написать следующую строку кода.
UIImage *image = [info valueForKey:UIImagePickerControllerEditedImage];
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES; // YES
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentViewController:picker animated:YES completion:NULL];
попробуйте это, я думаю, вам не хватает UIImagePickerControllerSourceTypeCamera на sourceType. посмотрите, работает ли он.