g763007297 / imageviewer Goto Github PK
View Code? Open in Web Editor NEW一款多图文浏览器,支持图文混合浏览和单图片浏览,增加底部文字,仿今日头条效果,图片原尺寸显示,不会变形,双击放大缩小,单击消失,支持多张本地及网络图片混合查看,支持链式调用,支持WebP图片。
License: GNU General Public License v2.0
一款多图文浏览器,支持图文混合浏览和单图片浏览,增加底部文字,仿今日头条效果,图片原尺寸显示,不会变形,双击放大缩小,单击消失,支持多张本地及网络图片混合查看,支持链式调用,支持WebP图片。
License: GNU General Public License v2.0
兄弟 你写的挺好的, 但是我建议你核心功能用 sdwebimage去做或者你可以外露一个属性让我们选择原生的 还是 sdwebimage渲染, 因为很多时候的需求都是 外面一个九宫格布局 点击布局才到你的框架, 外面的九宫格 图片请求和渲染 大多数都用sdwebimage完成了 到你这个框架的时候 你可以直接调取sdwebimage的缓存 这样性能和效率都会高一些
有两点修改:
1.工程自带的图片下载器不太支持请求头,refer,agent之类
直接换成了SDImageVIew的图片下载器
2.文字层用另外的控件实现,改写成一个漫画浏览器,组件对对内存控制很赞,之前用的组件内存问题改得头疼,推荐使用这个ImageViewer
非常好用,性能也不错,可惜扩展比较差,建议增加httphead等常用功能。
}
/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];
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.