1
我想裁剪在應用中拍攝的照片,然後保存。我正在使用GKImagePicker,以便我可以做到這一點,但如果我使用下面的代碼,即使我在應用程序中按下拍照按鈕,它也會顯示我選擇裁剪的照片庫。我不想這樣做,只想裁剪我在應用中拍攝的照片。使用GKImagePicker剪裁照片
- (IBAction)takePhoto:(UIButton *)sender {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
self.imagePicker = [[GKImagePicker alloc] init];
self.imagePicker.cropSize = CGSizeMake(320, 320);
self.imagePicker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:self.imagePicker.imagePickerController animated:YES];
[self presentViewController:picker animated:YES completion:NULL];
}
Dude請問你想添加更多解釋你想做什麼,你是否需要在沒有打開照片庫的情況下直接從Cam中取出圖像? – null
對不起,關於更少的解釋.. – user2590480