PAGalleryView 0.2.3

PAGalleryView 0.2.3

测试测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最新发布2017年8月

Pavel Alexeev 维护。



  • Pavel Alexeev

iOS 库,实现了类似于 Facebook 和 VK 应用程序的满屏和原地图片库。

  • 平滑动画
  • 拖动退出全屏手势
  • 全屏图像自动旋转(无需在 ViewController 中支持纵向和横向模式)
  • 活动和错误指示器

用法

要运行示例项目,克隆仓库,首先从 Example 目录运行 pod install

要求

最低 iOS 目标 - iOS 7。

使用 AFNetworking 下载图像。

安装

PAGalleryView 可通过 CocoaPods 获得。要安装,请简单地将以下行添加到您的 Podfile

pod "PAGalleryView"

##用法

简单示例

	NSArray *images = @[
			[[NSBundle mainBundle] URLForResource:@"image_1" withExtension:@"jpg"],
			[[NSBundle mainBundle] URLForResource:@"image_2" withExtension:@"jpg"],
			[[NSBundle mainBundle] URLForResource:@"image_3" withExtension:@"jpg"],
	];

	self.galleryView.imageURLs = images;

使用全屏图像

	self.galleryView.imageURLs = images;
	self.galleryView.fullScreenImageURLs = fullScreenImages;
	self.galleryView.errorImage = [UIImage imageNamed:@"errorImage"];

作者

Pavel Alexeev, [email protected]

许可证

PAGalleryView 基于 MIT 许可证可用。有关更多信息,请参阅 LICENSE 文件。