Comments (7)
你好!很高兴告诉你我可能知道了问题的所在。
问题在于如果在datasource放进两个view,就会有这个问题,不少于三张就没问题了。
希望作者能修复这个问题
from zybannerview.
不好意思前段时间较忙, 至今才回复. "在datasource放进两个view" 指的是什么意思呢? 如果有 Demo 可能会更好些.
from zybannerview.
在datasource放进两个view -> datasource集合内元素个数为2个
from zybannerview.
- (UIView *)banner:(ZYBannerView *)banner viewForItemAtIndex:(NSInteger)index
这个方法中 return 的 view 是使用集合持有的是吗
from zybannerview.
public class CustomZYBannerViewDataSource : ZYBannerView.ZYBannerViewDataSource
{
private List<UIView> viewList;
public CustomZYBannerViewDataSource(List<UIView> _viewList)
{
viewList = _viewList;
}
public override UIView Banner(ZYBannerView.ZYBannerView banner, nint index)
{
return viewList[(int)index];
}
public override nint NumberOfItemsInBanner(ZYBannerView.ZYBannerView banner)
{
return viewList.Count;
}
}
对的,我用的这种方式,以上代码的第二个函数应该就是你说的那个吧?
我在实例化对象的时候会通过构造函数把使用的集合传进来的。
from zybannerview.
两位还在么,我也遇到类似问题
from zybannerview.
@lzcdgit 或者你需要重现一下步骤给作者,我的项目已经停了好久了,所以已经忘记了相关bug的重现了。
from zybannerview.
Related Issues (20)
- 数据源个数返回1的时候崩溃 HOT 1
- 手动滚动时的问题 HOT 5
- 当数据源是Controller的View时有问题 HOT 3
- 请问我可否把你的ZYBannerView转到xamarin C#代码并公开在GitHub上 HOT 3
- 希望增加 currentPage 相关属性和回调 HOT 2
- 内存释放 HOT 2
- banner不在window上的话pageControl会有问题 HOT 6
- 数据源方法不会创建大量临时view? HOT 2
- view的位置在frame改变时会很奇怪 HOT 1
- 自定义两个页面 向左滑动后 然后往右滑动就会有空白页面展示出来 HOT 2
- 建议新增bounces属性支持
- 可以实现下拉变大吗
- layoutSubviews刷新frame的时机有问题
- 两个小建议 HOT 4
- 让她自然滑动超过一定张数的时候,图片会有卡顿的现象 HOT 3
- 请问支持自动布局么 HOT 3
- 作者您好 您的gif图是用什么软件制作的呢 HOT 3
- 改变item的大小 HOT 7
- 在 UITableView 中使用会卡顿。 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zybannerview.