MWPhotoBrowser图片无法左右滚动切换的问题
2015-05-13 16:52
302 查看
使用MWPhotoBrowser浏览大图时有时会出现无法左右滑动切换图片,在github上找到了解决方法(https://github.com/mwaterfall/MWPhotoBrowser/issues/389),在 MWZoomingScrollView.m中的函数 layoutSubviews中添加下面的代码:
self.contentSize = CGSizeMake(floorf(self.contentSize.width), floorf(self.contentSize.height));原文:
in my case, a specific image (width 600 height 1600) can't scroll to others after vertical drag, but after zoom, it can scroll to others, I think it might be due to the fractional part of contentSize or zoom related, tail add the following code to the function
layoutSubviews in MWZoomingScrollView.m, it works for me.
self.contentSize = CGSizeMake(floorf(self.contentSize.width), floorf(self.contentSize.height));
self.contentSize = CGSizeMake(floorf(self.contentSize.width), floorf(self.contentSize.height));原文:
in my case, a specific image (width 600 height 1600) can't scroll to others after vertical drag, but after zoom, it can scroll to others, I think it might be due to the fractional part of contentSize or zoom related, tail add the following code to the function
layoutSubviews in MWZoomingScrollView.m, it works for me.
self.contentSize = CGSizeMake(floorf(self.contentSize.width), floorf(self.contentSize.height));
相关文章推荐
- MWPhotoBrowser图片无法左右滚动切换的问题
- 图片左右循环连续滚动代码,解决marquee的留白问题
- 使用viewpager嵌套实现上下左右滑动切换图片(IOS双向滚动翻页效果相同)
- JQUERY JFLOW图片滚动插件左右按钮控制图片内容滑动切换
- jquery图片滚动带左右按钮控制焦点图片切换滚动
- 滚动视图(UIScrollView)无限无缝左右切换图片,自动顺序加逆序循环播放图片
- jquery图片滚动仿QQ商城带左右按钮控制焦点图片切换滚动
- 网易新闻首页的实现,可以添加,移除标签,自动滚动图片,无限左右切换图片
- 带有ListView的界面无法通过手势左右滑动切换界面问题解决办法
- 带左右箭头切换的自动滚动图片JS特效
- jq图片左右无缝切换滚动,有定时切换。
- 图片左右循环连续滚动代码,解决marquee的留白问题
- IE,FF浏览器下无法切换图片的问题
- javascript图片自动左右滑动滚动切换
- jquery图片滚动仿QQ商城带左右按钮控制焦点图片切换滚动
- JS+CSS控制左右切换鼠标可控的无缝图片滚动代码
- 带左右箭头切换的自动滚动图片JS特效
- 使用viewpager嵌套实现上下左右滑动切换图片(IOS双向滚动翻页效果相同)
- xSlider 可左右、上下图片切换的无缝滚动效果
- jquery仿QQ商城带左右按钮控制焦点图片切换滚动效果