zzyspace / zybannerview Goto Github PK
View Code? Open in Web Editor NEW简单易用, 显示内容定制性强的可循环轮播控件. 可以实现类似淘宝商品详情中侧拉进入详情页的功能.
License: MIT License
简单易用, 显示内容定制性强的可循环轮播控件. 可以实现类似淘宝商品详情中侧拉进入详情页的功能.
License: MIT License
你好作者,好久没联系,我是那个把你库转成C#用的人。
今天在调试你的库的时候发现了这个问题。
自己手写的demo没有问题:
数据源是直接手写的集合,集合的元素是局部变量,局部变量也是手写3个,然后添加到集合。
然后出问题的是动态加载的集合:
1 请求webapi获取到数据集 这里ok
2 循环1的集合的时候,在循环内部生成数据源的元素,并把元素添加到类的私有集合字段
3设置banner的数据源为那个私有集合字段
结果运行的时候,第一次显示正常,滚动一周之后,变为空白,到继续留意滚动,会发现图片是一闪而过。
自定义两个页面 向左滑动后 然后往右滑动就会有空白页面展示出来
你好 我通过flowlayout 来改变 itemSize 然后foot view 就失效了 请问可以改变 item的大小吗
SDCycleScrollView这个轮子就是因为不支持自动布局。。我才不用的。
// 返回Banner需要显示Item(View)的个数
你好 ,我是用xamarin开发ios的,我的项目已经用了你的库了,我自己已经把他(ZYBannerView)转换为c#代码,我想把这份c#代码公开在GitHub上,你觉得如何?
如题
// 返回 Banner 在不同的 index 所要显示的 View (可以是完全自定义的v iew, 且无需设置 frame)
- (UIView *)banner:(ZYBannerView *)banner viewForItemAtIndex:(NSInteger)index
{
// 取出数据
NSString *imageName = self.dataArray[index];
// 创建将要显示控件
UIImageView *imageView = [[UIImageView alloc] init];
imageView.image = [UIImage imageNamed:imageName];
imageView.contentMode = UIViewContentModeScaleAspectFill;
return imageView;
}
每次调用这个数据源方法就会产生一个临时的View(imageView),这样是不是有什么好的方法避免?
当控件从父视图移除的时候,需要将定时器停止,否则对象释放不了
作者您好 您的gif图是用什么软件制作的呢
@zzyspace 很实用的库。。。感谢
有个小问题想请教一下,在小屏幕设备上iPhone 4s ,iPhone5真机和模拟器,shouldLoop,autoScroll都为YES时,在手动滚动的时候,滚动结束时会有一个很慢的减速效果。
例如ZYBannerView.m的78行
if (CGRectEqualToRect(self.pageControl.frame, CGRectZero)) { // 若未对pageControl设置过frame, 则使用以下默认frame
在frame改变时 pageControl的位置不会跟随变化
updateSubviewsFrame
函数中也没用对collection view的frame进行刷新
是否意味着这个程序并不是很好地支持autolayout?
scrollInterval
属性并不能在 Interface Builder 中设计,是否不应该使用 NSTimeInterval
?您好,我发现如果点击某一张banner弹出一个窗口遮住当前view controller的话,
目前只能通过 pageControl 的currentPage属性获取页码,无法修改。
用户滚动或者自动滚动无法接收回调通知。
在 UITableView 中使用时,当轮播的控件被滑出屏幕再滑回来的时候会产生卡顿,因为 BannerView 又要重新初始构造化一次,有什么解决方案吗?谢谢。
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.