XPhotoBrowser 1.1.2

XPhotoBrowser 1.1.2

gdutxzy 维护。



  • gdutxzy

XPhotoBrowser

CI Status Version License Platform

  1. 支持 3D-Touch 推出并支持 3D-Touch 保存图片。
  2. 支持屏幕旋转。
  3. 支持图片随着手势运动而消失,类似于微信等应用的图片浏览器。
  4. 支持普遍图片浏览器所拥有的单击退出、双击缩放、捏合手势缩放、滑动切换图片的功能。
  5. 支持渐变跟踪原图大小的推出及消失转场动画。
  6. 支持宽高比大于 5 的长图画布显示。

屏幕截图

  

示例

要运行示例项目,先克隆仓库,然后在 Example 目录中运行 pod install

示例代码

NSArray *urlArray = self.urlArray;
NSArray *imageViewArray = @[self.imageView1,self.imageView2];

XPhotoBrowserVC *vc = [XPhotoBrowserVC photoBrowserWithImageURLs:urlArray images:nil imageViews:imageViewArray currentIndex:index];
[self presentViewController:vc animated:YES completion:^{

}];

要求

安装

XPhotoBrowser 通过 CocoaPods 提供使用。要安装它,只需将以下行添加到你的 Podfile 文件中

pod 'XPhotoBrowser'

作者

gdutxzy, [email protected]

许可证

XPhotoBrowser 采用 MIT 许可证。有关更多信息,请参阅 LICENSE 文件。