端末内の写真の他、Facebook や Instagram などの写真も選べるようになる。
アカウント管理はすべてSDKで代行してくれる。
SDK(ソースコード)は github から無料でダウンロードできるが、利用にあたってはサービスが発行する Key が必要になる。
photo-picker-plus/iOS/PhotoPickerPlus at master · chute/photo-picker-plus · GitHub
githubを見ると Android向けにも SDKを提供しているようだ。
chute/photo-picker-plus
複数枚選択の実装コード
-(void)showPhotoPickerPlus{
PhotoPickerPlus *temp = [[PhotoPickerPlus alloc] init];
[temp setDelegate:self];
[temp setMultipleImageSelectionEnabled:YES];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentModalViewController:temp animated:NO];
[temp release];
}
-(void)PhotoPickerPlusControllerDidCancel:(PhotoPickerPlus *)picker{
//place code for when the user cancels here
//such as removing the picker from the screen
}
-(void)PhotoPickerPlusController:(PhotoPickerPlus *)picker didFinishPickingArrayOfMediaWithInfo: (NSArray*)info{
//place code for when the user picks photos here and do any
//additional work such as removing the picker from the screen
}簡単。コードをざっと見たところ、認証処理はサービス側(http://getchute.com)を経由した OAuthで行っているようだ。



