beatskitano / kafkarefresh Goto Github PK
View Code? Open in Web Editor NEWAnimated, customizable, and flexible pull-to-refresh framework for faster and easier iOS development.
License: MIT License
Animated, customizable, and flexible pull-to-refresh framework for faster and easier iOS development.
License: MIT License
在iOS11上在设置导航栏的larger title的情况下,下拉刷新的控件显示异常,麻烦大神适配一下啊
提交bug前:
提交bug必须包含下列要点:
When using a horizontal collectionview with empty data, the refresh get triggered if pulled from left to right.
When pulling refresh its frozen until you reach some offset. When reached, it starts animating. Is this by design?
It seems to me that expected behaviour is when pulling, you see how refresh is already animating, even if it's 1 pixel on screen.
I wanted to use this component, to not reinvent the wheel again, but this push me away. What do you think?
假设每页能够拉20条数据,我拉取第一页20条数据后继续上拉加载第二页数据,等数据拉取成功后,底部最终不是停留在第一页的最后一条数据。
仔细看了很多遍,弹出alertText的时候 动画的控件还会存在闪一下,没有立即隐藏
比如下拉刷新,当我并没有下拉太多距离,也就是刷新的动画还未看见的时候,已经在执行刷新动作了,然后list回到初始位置,这个过程list移动的距离其实很小,这个地方我觉得不太好http://or7w4dvn2.bkt.clouddn.com/%E5%B1%8F%E5%B9%95%E5%BD%95%E5%88%B6.mov
具体看我录制的视频
这只是一个小小的建议~勿喷
Hi
Thanks for this lib !
I want to disable the footRefreshControl if no more data are available.
if(no more data)
[self.theTableView.footRefreshControl endRefreshingAndNoLongerRefreshingWithAlertText: nil];
The above works ONLY if footer was already refreshing because of
if((!self.isRefresh && !self.isAnimating) || self.isHidden) return;
In my case, during the first load (footer not triggered yet), I want to disable footRefreshControl because I already know there are no more data, how can I do ?
Thanks !
如果支持自定义动画就更完美了,像MJ那样!
The thing is when I tested component I got conflict with your extension properties for UIView and CALayer and mines. I have almost the same implementation of the extensions in my app, and I think that many projects have them implemented as well.
So this conflict doesn't allow me to use you component, it worked only after I replaced imports of this extensions from .h to .m files:
#import "CALayer+KafkaLayout.h"
#import "UIView+KafkaLayout.h"
And removed them from umbrella list in pods project.
I think that this extensions is good for internal use for your component and would be good if they do not affected other projects.
If I got right I can set background color only with singleton.
But in my project I use refreshes on different screens, so choosing one background color for all screens is not suited for me because screens have different background colors.
Changing color in singleton as I switch between screens is obviously kludge.
Would be good to add new method with backgroundColor
property or add this property to current method. So it could be possible to set color at refresh creation.
表现形式
当我的contentSize (高度)小于 frame(高度) 时 下拉并不会触发刷新
MJ 的可以
提交bug前:
提交bug必须包含下列要点:
出现尾部显示不出来,进行多次拖拽才会出现
非常不错的库,感谢作者开源。看到README中有FR的入口,所以进来做一下贡献,仅供参考(想必作者重新造轮子肯定也是对于现有的不满)。
以上,仅供大大参考。
封装得很好~ 支持作者开源~ 已star
在通过设置 contentInset 和添加 view 当做 tableview 的头部时, 自定义 view 会挡在 KafkaRefresh 前面, 请教一下如何调整控件的位置呢?
能发一下新版本吗?想用那个功能
headRefreshControl设置backgroundColor之后,tableView的背景颜色为白色,当headRefreshControl.backgroundColor不为白色时候,下拉的时候,会出现白色的view闪动一下
提交bug前:
提交bug必须包含下列要点:
是否能提供一个类,或者scrollview的方法,监听滚动,自己定制view,或者不只在tableview的headerView上增加,支持使用者自己设置.
1、KafkaReplicatorLayer类里,建议把图层相关的位置居中处理,目前是不居中的(比如点动画,将self.replicatorLayer.frame、self.replicatorLayer.instanceTransform处理下就可以了);
2、上拉加载时,建议添加拉到底部时放开就可以加载,目前是拉到一定的偏移量后放开加载。
作者您好:
endRefreshingWithAlertText:@"did load successfully"
我在加载完成的时候,调用headRefreshControl上面的方法,请问一下,我该如何更改文字的颜色以及动画背景颜色
I need to show table footer view (with copyright text) always in a bottom of tableview
The problem when no data in tableview and standart footer showed in a top
Can KafkaRefresh help me?
上拉加载更多, 如果所有的数据都被加载完了, 怎样设置, "已经加载完毕", 类似mjrefresh的endRefreshingWithNoMoreData
demo请使用自定义scrollView测试,不要使用系统的那个scrollViewVc来写,可能你就能发现问题
名请加上特定的前缀,否则很容易和其它pod产生冲突。 例如:
KafkaCategories.h 该文件里面的方法。
@interface UIView (KafkaLayout)
@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat right;
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;
@property (nonatomic) CGFloat centerX;
@property (nonatomic) CGFloat centerY;
@property (nonatomic) CGPoint origin;
@property (nonatomic) CGSize size;
@end
虽然不算是bug,希望作者可以处理一下,方便通用性!
现在的中英文混合的 README 文件似乎不是十分符合懒加载模式呢
--------一个来自 Markdown 程序员的真诚的意见😊
这个动画明显 不居中 左右不对称啊
hello !When the frame of UIScrollView is larger than the content, it cannot slide refresh. What's going on here?
我还以为和 Apache 的 Kafka 有什么关系, 没想到是 UI 控件, 被套路了...
开玩笑的, UI 做的挺炫, 不过我还是想知道为啥叫 Kafka😀
iPhone X, 最新kafkaRefresh版本,iOS12
当想要集成到这个里面时:https://github.com/SoySauceLab/CollectionKit
都能正常显示,但是,显示出现了不居中(偏右)
添加完tableview下拉刷新之后调用 主动下拉刷新 页面顶部会多出30左右的空
Thanks for this great lib.
謝謝你的美好事物
I find that a refresh icon is slightly off the center to the right.
圖標略微偏離右側中心
Same issue is here.
同樣的問題已經解決了
#49
Is this issue fixed already?
這個問題已經解決了嗎?
If someone know how to fix it, please tell me how to fix it.
如果能告訴我是否有解決方案,我很高興
Thanks
謝謝
提交bug前:
提交bug必须包含下列要点:
2.0版本大概啥时候更新呢
some style like 'ReplicatorArc' can't use fillColor, It's always show the default color
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.