NBPhotoLibrary 1.0

NBPhotoLibrary 1.0

测试已测试
语言语言 Obj-CObjective C
许可 自定义
发布最新发布2017年6月

Nanda Ballabh 维护。



  • 作者:
  • Nanda Ballabh

点击并选择照片,使用 RSKImageCropper 库提供裁剪功能。

要添加到 podfile,请使用 pod 'NBPhotoLibrary'

代码示例 #import "PhotoLibraryManager.h" 添加代理 PhotoLibraryManagerDelegate 添加以下行以使用库

PhotoLibraryManager * photoLibrary = [PhotoLibraryManager instance];
photoLibrary.delegate = self;
photoLibrary.controller = self;
[photoLibrary openPhotoLibrary];

我们可以使用 PhotoLibraryManagerDelegate 方法进行使用

- (void)photoLibraryImageCropController:(RSKImageCropViewController *)controller didCropImage:(UIImage *)croppedImage usingCropRect:(CGRect)cropRect {
self.imageView.image = croppedImage;
}