이미지를 선택하여 컬렉션보기로 표시하는 프로젝트가 있습니다. UIImagePickerController
을 사용했지만 디자인 제한이 있습니다.iOS7 + 이미지 피킹의 우수 사례 (> 2014)
필자는 실제로 프로젝트의 나머지 부분의 디자인에 맞도록 피커 컨트롤러 (크기 및 색상)를 포맷하고 싶습니다. 이 주제에 대한 많은 질문은 "AVFoundation
으로 이동"으로 회신합니다. 그러나 AVFoundation
은 이러한 종류의 작업을 수행 할 때 다루기 힘들어 보입니다.
내 질문에.
UPDATE :
이미지 피커 .. 내가 피커 프레임의 크기를 제어 할 수 있도록하고 싶습니다 호출하는 코드를 추가.
- (IBAction)useCameraRoll:(id)sender {
NSLog(@"%s", __FUNCTION__);
if ([UIImagePickerController isSourceTypeAvailable:
UIImagePickerControllerSourceTypeSavedPhotosAlbum])
{
UIImagePickerController *imagePicker =
[[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.sourceType =
UIImagePickerControllerSourceTypePhotoLibrary;
imagePicker.mediaTypes = @[(NSString *) kUTTypeImage];
imagePicker.allowsEditing = NO;
//imagePicker.navigationBar.tintColor = [UIColor redColor];
[[UINavigationBar appearance] setBarTintColor:[UIColor redColor]];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setFrame:CGRectMake(0,0,300, 300)];
[[UICollectionView appearanceWhenContainedIn:[UIImagePickerController class], nil] setBackgroundColor:[UIColor greenColor]];
[self presentViewController:imagePicker animated:YES completion:nil];
_newMedia = NO;
}
}
카메라 또는 라이브러리 선택 도구에 대해 이야기하고 있습니까? – Logan
죄송합니다 - 도서관 피커 –