我正在使用Allowsedditing裁剪我在應用中拍攝的照片,但它不能正常工作,因爲它彈回了。有沒有做這個任務?我被告知應該使用GKIIMagePicker,但它不起作用。我應該怎麼做?拍照後裁剪
- (IBAction)takePhoto:(UIButton *)sender {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
self.imagePicker = [[GKImagePicker alloc] init];
self.imagePicker.cropSize = CGSizeMake(320, 90);
self.imagePicker.delegate = self;
self.imagePicker.imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:self.imagePicker.imagePickerController animated:YES];
}
您是否找到了解決方案?我也在尋找這個... –