Latest 0.0.1
Homepage https://github.com/djliu328/DJPictureViewer
License MIT
Platforms ios 7.0, requires ARC
Authors

DJPictureViewer

  • A PictureViewer Which is easy to realize, You can show photo or image in
    a few lines of code with it.
  • 一个实现起来比较简单地图片查看器,仅仅几行代码你就可以轻松实现一个转换图片的过程中会有交叠重影效果的查看图片的功能。

如何使用DJPictureViewer

  • cocoapods导入:pod 'DJPictureViewer'
  • 手动导入:
    • DJPictureViewer文件夹中的所有文件拽入项目中
    • 导入主头文件:#import "DJPictureViewer.h"

详细使用方法

代码实现

//你的图片数据源
NSArray *imageArr = @[@"example1",@"example2",@"example3",@"example4",@"example5"];

//存储数据容器
NSMutableArray *img = [NSMutableArray array];

for (int i = 0; i < imageArr.count; i ++) {
    DJPictureViewerModel *model = [[DJPictureViewerModel alloc] initWithimage:imageArr[i]];
    [img addObject:model];
}
//图片查看
DJPictureViewer *pictureViewer = [[DJPictureViewer alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) imgArr:img];
[self.view addSubview:pictureViewer];
选择控制定时器开关(可选设置,控制图片自动切换)
//选择控制定时器开关(默认关闭,如果需要在这里设置)
//    pictureViewer.startTimer = YES;

提醒

  • 兼容的系统支持>=iOS7.0

期待

  • 如果在使用过程中遇到BUG,希望你能Issues我,谢谢(或者尝试下载最新的框架代码看看BUG修复没有)
  • 如果在使用过程中发现功能不够用,希望你能Issues我,我非常想为这个框架增加更多好用的功能,谢谢
  • 如果你想为DJPictureViewer输出代码,请拼命Pull Requests我
  • 本功能正在不断完善中,以后会持续更新,希望在以后的时光里将此功能完善的更人性化,功能更加的强大。让我们共同维护。
  • 如果感觉还可以的话欢迎star,灰常感谢~

Latest podspec

{
    "name": "DJPictureViewer",
    "version": "0.0.1",
    "summary": "A PictureViewer Which is easy to realize",
    "homepage": "https://github.com/djliu328/DJPictureViewer",
    "license": "MIT",
    "authors": {
        "dj_liu": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/djliu328/DJPictureViewer.git",
        "tag": "0.0.1"
    },
    "source_files": "DJPictureViewer/**/*.{h,m}",
    "resources": "DJPictureViewer/DJPictureViewer.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This