ZCImagePickerController
Drop in replacement of UIImagePickerController. Add mutiple selection feature.
Install / Use
/learn @iamzcc/ZCImagePickerControllerREADME
SCREEN SHOT
iOS 7
iOS 6

FEATURES
- Simulate the UI and user experience of UIImagePickerController.
Videos and photos are supported, just like the UIImagePickerController.- Support setting the maximum number of photos and videos that the user can select at one time.
Localization supported.English, Simplified Chinese and Traditional Chinese are supported.- Auto reload albums when user modify photos and videos in the default photos app.
- Support ARC.
- Support iPhone and iPad.
Require OS : iOS5 or later
Require Frameworks:
- AssetsLibrary.framework
- QuartzCore.framework
HOW TO USE
The image picker is created and displayed in a very similar way of the UIImagePickerController. The demo application shows how it is used.
ZCImagePickerController *imagePickerController = [[ZCImagePickerController alloc] init];
imagePickerController.imagePickerDelegate = self;
imagePickerController.maximumAllowsSelectionCount = 5;
imagePickerController.mediaType = ZCMediaAllAssets;
if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
// You should present the image picker in a popover on iPad.
_popoverController = [[UIPopoverController alloc] initWithContentViewController:imagePickerController];
[_popoverController presentPopoverFromRect:_launchButton.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
else {
// Full screen on iPhone and iPod Touch.
[self.view.window.rootViewController presentViewController:imagePickerController animated:YES completion:NULL];
}
The ZCImagePickerController will return the select images back to the ZCImagePickerControllerDelegate. The delegate contains to methods very similar to the ZCImagePickerControllerDelegate. Instead of returning one dictionary representing a single image the controller sends back an array of similarly structured dictionaries. The two delegate methods are:
- (void)zcImagePickerController:(ZCImagePickerController *)imagePickerController didFinishPickingMediaWithInfo:(NSArray *)info;
- (void)zcImagePickerControllerDidCancel:(ZCImagePickerController *)imagePickerController;
LICENSE
The MIT License
Copyright © 2013 ZCCStudio
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
