iOS 库,实现了类似于 Facebook 和 VK 应用程序的满屏和原地图片库。
要运行示例项目,克隆仓库,首先从 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 文件。