相册 - 从系统相册选择照片
变更记录
序号 | 录入时间 | 录入人 | 备注 |
---|---|---|---|
1 | 2015-03-01 | Alfred Jiang | - |
2 | 2015-12-23 | Alfred Jiang | - |
方案名称
相册 - 从系统相册选择照片
关键字
相册 \ 拍照 \ 照片选取 \ ImagePickerController
需求场景
- 需要从系统相册选择照片的一类需求
参考链接
详细内容
使用方法:
复制 JSImagePickerViewController.h/m 文件即可,导入头文件:
1 | #import "JSImagePickerViewController.h" |
示例代码:
1 | JSImagePickerViewController *imagePicker = [[JSImagePickerViewController alloc] init]; |
通过 delegate 方法获取图像:
1 | - (void)imagePickerDidSelectImage:(UIImage *)image { |
多个 delegate 方法:
1 | - (void)imagePickerDidOpen; |
另外以下公开属性支持自定义:
1 | @property (nonatomic) NSTimeInterval animationTime; |
效果图
(无)
备注
类似推荐
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 宁静至远,博雅多通!