1

내 앱에 내 collectionView가 있습니다. 내 응용 프로그램에 기본 UIImagePicker를 사용하고 싶지 않습니다. & 내 컬렉션보기로 이미지 선택기를 구현하고 싶습니다.iOS 용 맞춤 이미지 선택 도구

앨범보기를 선택하는 사용자 지정을 구현하는 방법과 앨범을 선택한 후, 사용자 지정보기를 구현하여 해당 앨범의 모든 이미지를 보는 방법을 알려줄 수 있습니까?

매우 쉬운 질문 인 경우 죄송합니다.

+0

https://www.cocoacontrols.com/search?utf8=%E2%9C%93&q=imagepickercontroller – Rushabh

+1

https://www.cocoacontrols.com/controls/snimagepicker이 사용자 지정 컨트롤을 –

+0

HTTPS 참조 : // GitHub의. co.kr/B-Sides/ELCImagePickerController 도움이 될 수도 있습니다. – saiy2k

답변

1

이것은 ALASSETS의 도움으로 수행 할 수 있습니다. 아래에서 설명서를 찾을 수 있습니다.

ALAssetsLibrary *al = [[ALAssetsLibrary alloc] init]; 
assets = [[NSMutableArray alloc] init]; 
[al enumerateGroupsWithTypes:ALAssetsGroupAll 

        usingBlock:^(ALAssetsGroup *group, BOOL *stop) 
{ 
    [group enumerateAssetsUsingBlock:^(ALAsset *asset, NSUInteger index, BOOL *stop) 
     { 
      if (asset) 
      { 
       NSLog(@"%@",asset); 

       NSLog(@".. do something with the asset");  
      } 
     } 
     ]; 
} 

         failureBlock:^(NSError *error) 
     { 
      // User did not allow access to library 
     // .. handle error 
     } 
     ] ; 

당신이 Alasset 유형이 변수 갖는 사용자 정의 셀을 만들 필요가 컬렉션을보기로 채 웁니다하려면 https://developer.apple.com/library/ios/documentation/AssetsLibrary/Reference/ALAsset_Class

.