Coder Social home page Coder Social logo

g763007297 / imageviewer Goto Github PK

View Code? Open in Web Editor NEW
73.0 2.0 6.0 15.35 MB

一款多图文浏览器,支持图文混合浏览和单图片浏览,增加底部文字,仿今日头条效果,图片原尺寸显示,不会变形,双击放大缩小,单击消失,支持多张本地及网络图片混合查看,支持链式调用,支持WebP图片。

License: GNU General Public License v2.0

Objective-C 81.15% Ruby 0.33% C 18.53%
image-viewer webp pod gesture-driven-animations undeformation objective-c pod-target text-viewer news-reader datasource

imageviewer's People

Contributors

g763007297 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imageviewer's Issues

一点建议

兄弟 你写的挺好的, 但是我建议你核心功能用 sdwebimage去做或者你可以外露一个属性让我们选择原生的 还是 sdwebimage渲染, 因为很多时候的需求都是 外面一个九宫格布局 点击布局才到你的框架, 外面的九宫格 图片请求和渲染 大多数都用sdwebimage完成了 到你这个框架的时候 你可以直接调取sdwebimage的缓存 这样性能和效率都会高一些

的确不错,非常好用!

有两点修改:
1.工程自带的图片下载器不太支持请求头,refer,agent之类
直接换成了SDImageVIew的图片下载器
2.文字层用另外的控件实现,改写成一个漫画浏览器,组件对对内存控制很赞,之前用的组件内存问题改得头疼,推荐使用这个ImageViewer

不错的图片库

非常好用,性能也不错,可惜扩展比较差,建议增加httphead等常用功能。

1.01无法编译

/Pods/GQImageViewer/GQImageViewer/GQThirdPart/WebP.framework/Headers/types.h:20:10:
Include of non-modular header inside framework module 'GQImageViewer.types'
麻烦作者看一下

图片浏览不能弹出

我按照您的例子写了一个新的 在tableview上点击 cell 加载网络图片 但是只有一个能弹出View 其余的不能弹出View 不知道问题出在哪里?

图片保存失败

图片保存失败,原因未知,writeToFile errorcode = -4

替换保存方法后可以保存成功:

  • (void)storeImageDataToDisk:(nullable NSData *)imageData forKey:(nullable NSString *)key {
    if (!imageData || !key) {
    return;
    }
    if (![_fileManager fileExistsAtPath:[self getImageFolder]]) {
    [_fileManager createDirectoryAtPath:[self getImageFolder] withIntermediateDirectories:YES attributes:nil error:NULL];
    }

      // get cache Path for image key
    

    NSString *imageFilePath = [self getPathByFileName:key];
    // transform to NSUrl
    NSURL *fileURL = [NSURL fileURLWithPath:imageFilePath];

    [_fileManager createFileAtPath:imageFilePath contents:imageData attributes:nil];

    [fileURL setResourceValue:@yES forKey:NSURLIsExcludedFromBackupKey error:nil];
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.