SKFPicPreview icon indicating copy to clipboard operation
SKFPicPreview copied to clipboard

一个图片预览工具,支持预览本地图片,或者网络图片

SKFPicPreview

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 6 or higher
  • iOS 7.0 or higher
  • ARC

Installation

  • SKFPicPreview is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SKFPicPreview"
  • 或者下载demo到本地将SKFPicPreview添加到工程,引入
#import "SKFPreViewNavController.h"

按照下面的方法使用

  • 预览网络图片
SKFPreViewNavController *imagePickerVc =[[SKFPreViewNavController alloc]initWithSelectedPhotoURLs:self.Photosurlary index:indexPath.row];

[self presentViewController:imagePickerVc animated:YES completion:nil];

*预览本体图片

SKFPreViewNavController *imagePickerVc = [[SKFPreViewNavController alloc] initWithSelectedPhotos:_selectedPhotos index:indexPath.row DeletePic:YES];

[imagePickerVc setDidFinishDeletePic:^(NSArray<UIImage *> *photos) {   }];

[self presentViewController:imagePickerVc animated:YES completion:nil];

Author

wubianxiaoxian, [email protected]

License

SKFPicPreview is available under the MIT license. See the LICENSE file for more info.