ISImagePicker - iOS 图片选择器
MIT
iOS
Swift
软件简介
ISImagePicker,iOS 端的图片选择器(仿微信),采用 Swift 编写,使用了 PhotoKit 库。
环境要求:
-
Xcode 8.0
-
Swfit3.0 (不支持 Objective-C)
-
iOS8.0
-
设备支持:Universal
-
设备定向支持:All
用法示例:
//conform ISImagePickerControllerDelegate
let options:[ISImagePickerOption] = [
.MaxImagesCount(9),
.IsPickVideo(false),
.IsPickImage(true),
.IsShowTakePictureBtn(true),
.ColumnCount(4),
.ColumnMargin(5),
.Bundle("ISImagePicker.bundle"),
.SelImg("photo_sel_photoPickerVc.png"),
.UnSelImg("photo_def_previewVc.png"),
.PreNumImg("preview_number_icon.png"),
.NavBackItemImg("navi_back.png"),
.NavBarTintColor(#colorLiteral(red: 0.2549019754, green: 0.2745098174, blue: 0.3019607961, alpha: 1)),
.NavBarItemColor(UIColor.white),
ISImagePickerOption.PreviewImageMaxZoom(20),
.ExpectImageWidth(400.0),
.IsAllowSelecteOrignalImage(true)
]
let imagePicker = ISImagePickerController(options: options)
imagePicker.imagePickerDelegate = self
self.present(imagePicker, animated: true, completion: nil)