zl程序教程

您现在的位置是:首页 >  其它

当前栏目

[翻译] InstagramPhotoPicker

翻译
2023-09-14 08:57:16 时间

InstagramPhotoPicker

Present Image Picker like Instagram.

展示图片选择器,像Instagram这款应用一样.

Installation - 安装

With CocoaPods, add this line to your Podfile.

使用CocoaPods安装,将下面这行代码添加到你的Podfile中即可.

pod TWPhotoPicker, ~ 1.0.0

Screenshots - 截图

Usage - 使用

 TWPhotoPickerController *photoPicker = [[TWPhotoPickerController alloc] init];

 photoPicker.cropBlock = ^(UIImage *image) {

 //do something

 [self presentViewController:photoPicker animated:YES completion:NULL];

Requirements - 需要

iOS 7 or higher Automatic Reference Counting (ARC)

Author - 作者

wenzhaot (@Wenzhaot)

License - 版权

TWPhotoPicker is released under the MIT license. See the LICENSE file for more info.