iOS 高性能图片浏览器 HJPhotoBrowser

码农软件 · 软件分类 · 图像(Image) · 2019-05-29 13:44:11

软件介绍

HJPhotoBrowser 是一款 iOS 高性能图片浏览器,依赖 SDWebImage,支持浏览本地图片及网络图片,支持 CocoaPods 安装。

主要功能

图片浏览

Installation

CocoaPods

pod 'HJPhotoBrowser' # Podfile

代码示例

  - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
  {
        NSInteger count = _dailyModel.picArray.count;
        HJPhotoBrowser *browser = [[HJPhotoBrowser alloc] init];
        browser.sourceImagesContainerView = collectionView;
        browser.imageCount = count;
        browser.currentImageIndex = indexPath.row;
        browser.delegate = self;
        [browser show];
  }
  #pragma 占位图
  -(UIImage *)photoBrowser:(HJPhotoBrowser *)browser placeholderImageForIndex:(NSInteger)index
  {
        return [UIImage imageNamed:@"error_image"];
  }
  #pragma 图片的地址
  -(NSURL *)photoBrowser:(HJPhotoBrowser *)browser highQualityImageURLForIndex:(NSInteger)index
  {
        return [NSURL URLWithString:_dailyModel.picArray[index]];
  }

本文地址:https://codercto.com/soft/d/6803.html

Neural Networks for Applied Sciences and Engineering

Neural Networks for Applied Sciences and Engineering

Samarasinghe, Sandhya / CRC Pr I Llc / 2006-9 / $ 118.59

In response to the exponentially increasing need to analyze vast amounts of data, Neural Networks for Applied Sciences and Engineering: From Fundamentals to Complex Pattern Recognition provides scient......一起来看看 《Neural Networks for Applied Sciences and Engineering》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具