chennyhuang / hzphotobrowser Goto Github PK
View Code? Open in Web Editor NEW图片浏览器 ,photoBrowser ,新浪微博,picture,pictureBrowser,sina,weibo
图片浏览器 ,photoBrowser ,新浪微博,picture,pictureBrowser,sina,weibo
不知道是不是个例,点击返回按钮没有走- (void)backAction:(UIButton *)sender方法,其它两个按钮也是
Error Domain=ALAssetsLibraryErrorDomain Code=-1 "Unknown error" UserInfo={NSLocalizedDescription=Unknown error, NSUnderlyingError=0x281af9110 {Error Domain=ALAssetsLibraryErrorDomain Code=-1 "Unknown error" UserInfo={NSLocalizedDescription=Unknown error, NSUnderlyingError=0x281ac1110 {Error Domain=ALAssetsLibraryErrorDomain Code=-1 "Unknown error" UserInfo={NSLocalizedDescription=Unknown error, NSUnderlyingError=0x281a3d740 {Error Domain=com.apple.photos.error Code=46104 "(null)"}}}}}}
访问相册权限和保存图片权限都有加
由于UICollectionview的重用机制,UICollectionview的subviews可能多于cell的数量,subviews(重用池)内有一个隐藏的cell,导致获取到的index不准确,使隐藏动画图片缩放时不准确。
若浏览图片较多情况,有复用机制就更好了。
点击保存按钮崩溃,请解决下哦
发现下载进度指示器和SDPhotoBrowser一模一样,整个项目结构也基本一致
就是一个demo 在scollerview 上加一些照片
UIImageView * view = sender.view;
HZPhotoBrowser *browserVc = [[HZPhotoBrowser alloc] init];
browserVc.sourceImagesContainerView = ScrollView;
browserVc.imageCount = _srcStringArray.count;
browserVc.currentImageIndex = view.tag;
// 代理
browserVc.delegate = self;
// 展示图片浏览器
[browserVc show];
会崩溃 不太懂啊
横屏时点击图片放大,放大后的图片是最大化只能看到部分图片;
然后缩小时,图片缩小飞回去的位置有偏差;竖屏没问题
convertToRect 有时候得不到想要的结果。建议在viewDidLoad里事先把所有sourceView的rect计算出来。
animatedImageView = (FLAnimatedImageView *)currentView.imageview;
NSData *imageData =animatedImageView.animatedImage.data;//这句报Property 'data' cannot be found in forward class object 'FLAnimatedImage'
大兄弟,你这抄袭的一模一样,没必要的哥们。
https://github.com/gsdios/SDPhotoBrowser
像这种框架,最好是数组中存模型(主要字段图片标题、远程链接、本地图片),而不是传简单的字符串数组
微信网页的图片浏览点击图片后拖拽能回到原来的位置不是中心,这个怎么做的, 该框架能封装类似实现吗
我如果用方式二来展示图片,业务场景是在TableViewCell上增加了一个UIScrollView来展示左右滑动的图片,这时候讲这个UIScrollView作为 browser.sourceImagesContainerView,但是当我右滑动到最后一张时候点击放大再点击缩小,这时候UIScrollView的contentOffset变为了(0,0)这是怎么回事呢?
还不支持ipad,在ipad下使用不正常。
我把代码拖进项目中,马上26个警告,这么写好吗?朋友
Warning: Attempt to present <HZPhotoBrowser: 0x113d415d0> on <FOXNavigationViewController: 0x114817000> whose view is not in the window hierarchy!
点击show之后不弹出
RT
图片浏览器dismiss到展示页面后..tabbar消失了...
模态得到自己的VC,后返回没有消失
如果你指定的父视图里面的subviews 不仅仅包含 图片 而且 包括 其他视图 比如 UILabel,UIbutton,UIimageView 啊,然后你用这个去取 UIView *sourceView = self.sourceImagesContainerView.subviews[self.currentImageIndex]; 得到的sourceView 就不能保证是点击的图片,有可能取出来的是UIlabel什么的然后就挂了
如题 ,不然会显得很突兀啊
博主,我最近在用你的图片浏览进行做了一个功能。如果我想和微信做一样的样式,比如图片数组只有一个图片的时候我这个时候想让图片的大小成我设置的大小,这个时候我该如何去做,我看了一下你的图片是button设置的image,如果我换成backgroundImage则点击变大图查看的时候就会奔溃。能告诉我一下该如何去修改吗?
如题
当图片的宽(w):高(h)<屏幕的k:h时,是否可以按照屏幕的高度确定图片的初始显示缩放比例,不然在横屏状态下图片放大模式,不会完全看到
长图全屏滚动到下面时、点击缩小会跳滚到顶部再缩小
demo 看得不是太懂
可以给个思路么? 看了一下,好像不太好扩展,但是正常使用没问题
emm 已解决 在学习
单张图片大小不一样的时候,如何传入图片的尺寸进行位置的更新
能加视频吗 带进度条
sdwebimage5.0版本不适配
很喜欢你写的demo,想请教几个问题,179434316
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.