ko1o / pyphotobrowser Goto Github PK
View Code? Open in Web Editor NEWAn easy way to browse photo(image) for iOS.
License: MIT License
An easy way to browse photo(image) for iOS.
License: MIT License
1.在最大化的图片右上角继续拉大,放手后会回弹到左上角位置,初步猜测是锚点的问题,正在尝试修改
2.手动拉大图片后无法向右滑动切换图片(即上一张),强行右滑到一定距离后由于死循环闪退
我使用您的三方进行全屏大图展示, 虽然不影响真机运行, 但是模拟器运行时, 展示缩略图的时候会崩在PhotoView.m的self.addImageButton.py_y = (self.images.count / maxCol) * (self.photoHeight + self.photoMargin); 也就是404行
我用PYPhotosView进行图片缩略展示和全屏展示, 但是PYPhotoBrowseViewDelegate这些协议方法是如何才能用到呢
ps:py......
能再具体说明一下问题么?
can you plz add youtube video support
建议把取消图片的代理给开放出来
如题
缩略图怎么这么模糊呢?点击打开有,在次看到的缩略头就很清晰
如果我在app当中设置了NavigationBar 的appearance, 会影响preview VC 的样式,应该怎么解决。
添加到Cell中显示图片,上下滑动,UITableView不能滑动,手势冲突,怎么解决
您好,在单元格中流水布局显示多行,会造成点击最后一行的空白处无法响应单元格的点击方法
如果是gif图还没加载完(有加载进度)等加载完了,能正常播放
然后再点击一下缩起来,再点击打开,就成一张白底了(尺寸倒是对的)
给你这个gif图片链接,自己试一下吧
http://115.159.75.163/itopic/media/topic/photo/2017-02-04/a2094cc67e4f99e2.250_175.gif
有进度了麻烦联系一下我,QQ 285275534
点击最后一张图片预览,点击删除,屏幕变黑,要滑动才能恢复
Include of non-modular header inside framework module 'PYPhotoBrowser.MBProgressHUD_PY'
Include of non-modular header inside framework module 'PYPhotoBrowser.PYProgressView'
今天看你的源码的时候发现if语句后没有跟上{},虽然没有问题,但是个人觉得这不是一个好习惯。一个小建议而已。
开始时的设置了宽高,发现宽正常,高没有执行。当点击了一下图片,查看了一次大图后,返回时高变正常。还有就是,如果不设置缩略图数,我发现会自动加载大图,这样不是很好吧?
滑到最后一张 多滑几次会崩溃
PYPhotoBrowseView类里面为什么取消了网路图片url数组元素?现在直接浏览图片需要传递UIImage数组,而且还崩溃~
在page崩溃的地方加上判断 :
self.pageControl.currentPage = page;
// 取出photosView
PYPhotosView *photosView = self.selectedPhotoView.photosView;
if (page >photosView.subviews.count) {
page = page-1;
self.selectedPhotoView = photosView.subviews[page];
}
你不是使用 MPMoviePlayerController 作为播放器吗?
为什么本地还需开启 HTTPServer?
是否方便弄个动态图,这样更能显示出问题的所在。
博主你们好 为什么点击图片大图出现时是先从全屏在到正确大小 而消失时也是先到最大再从屏幕顶部消失 求解
我在用Demo测试的时候,iPad运行出现了这样的问题,请问大神可以修复这个BUG吗?
sdfsdgfsdgsdg.zip
点击UIImageView而不是PYPhotoView,如何只调用PYPhotoBrowseView,并加载大图
PYPhotoBrowseView 传入了uiimgeview 数组后· 竖屏显示正常,也可翻页查看其他图片,但是如果初始化后第一时间由竖着显示切换成横屏后,再翻页查看其他图就闪退。
- (void)viewDidLoad {
[super viewDidLoad];
// 初始化
[self setup];
// 1. 常见一个发布图片时的photosView
PYPhotosView *publishPhotosView = [PYPhotosView photosView];
// 2. 添加本地图片
NSMutableArray *imagesM = [NSMutableArray array];
for (int i = 0; i < 6; i++) {
[imagesM addObject:[UIImage imageNamed:[NSString stringWithFormat:@"%02d", i + 1]]];
}
publishPhotosView.py_x = PYMargin ;
publishPhotosView.py_y = PYMargin * 2 + 64;
// 2.1 设置本地图片
publishPhotosView.images = imagesM;
publishPhotosView.photoMargin = 0.0;
// 3. 设置代理
publishPhotosView.delegate = self;
publishPhotosView.photosMaxCol = 4;
publishPhotosView.imagesMaxCountWhenWillCompose = 6;
// 4. 添加photosView
[self.view addSubview:publishPhotosView];
self.publishPhotosView = publishPhotosView;
}
@iphone5solo 兄弟,你前几天提交的这个代码,会导致未发布状态下,只选择一张图片的时候 addImageButton显示不出来,所以你应该加个状态条件。
// 如果图片为一张,则图片的大小和photosView一致 if (count == 1 && !CGSizeEqualToSize(self.bounds.size, CGSizeMake(self.photoMargin, self.photoMargin))) { return self.bounds.size; }
出现和消失的动画时间太久了 怎么改
加载完已发布网络图片后,点击图片的时候不管点击的是第几张,弹出的总是第一张, 但是下面的page index显示是正确的。点击本地图片的时候就没有这个问题。 这个怎么解决? 当再次点击预览图片缩小的时候,就有以下的信息
Could not load the "close" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "more " image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "play_1" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "pause" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "play" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "close" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "more " image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "play_1" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "pause" image referenced from a nib in the bundle with identifier "xxxx"
Could not load the "play" image referenced from a nib in the bundle with identifier "xxxx"
上下不能滑动了
可以用此图片测试:
http://ww4.sinaimg.cn/bmiddle/406ef017jw1ec40av2nscj20ip4p0b29.jpg
添加到cell 的时候很卡,cell是用xib做得
协议名建议不要叫做delegate, 会和scrollView自带的协议重名
进入图片浏览器,长按,弹出sheet,单击保存,保存成功,单击浏览器 返回上一视图, 上一视图中 所有btn 不能被点击 只有真机情况下 会有这个bug 模拟器 没毛病
图片和视频混在一起怎么办
在tableViewCell上加的时候,不能用+ (instancetype)photosView;快速创建的方法,然后再给它url数组 会崩溃
这个photoBrowerView是个window但是么有rootViewControoler, 貌似没办法在这个window上present一个UIAlertController出来?(我用来询问用户是否要保存图片)
点击发布之后,再次点击示例控制器首页 图片点击无效
猜测可能是销毁了控制器
预览大图的时候支持图片删除功能吗?怎么删除按钮显示不出来呢?大神,求解!!
我点击了我的评论,然后在点击图片,我的键盘没有消失,我想知道在外部可以获取即将进入图片的方法么,然后我隐藏键盘
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.