All Projects → liutongchao → LCRefresh

liutongchao / LCRefresh

Licence: MIT license
简单的swift 版的 下拉刷新控件,希望可以给你提供一个思路。

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Labels

Projects that are alternatives of or similar to LCRefresh

Collapsingrefresh
AppBarLayout+ViewPager+RecyclerView的刷新功能
Stars: ✭ 69 (+228.57%)
Mutual labels:  refresh
Tgrefreshoc
弹簧、橡皮筋下拉刷新控件,类似QQ下拉刷新效果,同时支持其他样式
Stars: ✭ 149 (+609.52%)
Mutual labels:  refresh
React Native Smartrefreshlayout
基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件,可提供类似ios的弹性刷新
Stars: ✭ 240 (+1042.86%)
Mutual labels:  refresh
Glastoselenium
A bot for booking Glastonbury tickets using selenium
Stars: ✭ 89 (+323.81%)
Mutual labels:  refresh
View Load Retry
这个加载框架有点不一样,针对View进行加载,加载页面还保持了原View的属性,侧重点在灵活,哪里需要加载哪里,加载状态页面完全自定义,无任何限制,针对加载结果可以按需配置对应页面,LeakCanary检测无内存泄漏
Stars: ✭ 119 (+466.67%)
Mutual labels:  refresh
Pull To Refresh.rentals Ios
This project aims to provide a simple and customizable pull to refresh implementation. Made in Yalantis
Stars: ✭ 2,171 (+10238.1%)
Mutual labels:  refresh
Kafkarefresh
Animated, customizable, and flexible pull-to-refresh framework for faster and easier iOS development.
Stars: ✭ 1,033 (+4819.05%)
Mutual labels:  refresh
goRefresh
让下拉刷新炫酷起来~轻松接入lottie动画,支持listview recyclerview scrollerview webview 。同时支持listview和recyclerview上拉加载
Stars: ✭ 24 (+14.29%)
Mutual labels:  refresh
React Native Mjrefresh
基于ios MJRefresh https://github.com/CoderMJLee/MJRefresh 开发的插件,可提供自定义的弹性刷新
Stars: ✭ 140 (+566.67%)
Mutual labels:  refresh
Shswiperefreshlayout
Android 升级版 SwipeRefreshLayout,支持RecyclerView、ScrollView等大部分组件,下拉刷新(Refresh)和上拉加载(Loadmore),支持自定义HeaderView和FooterView
Stars: ✭ 236 (+1023.81%)
Mutual labels:  refresh
React Native Rk Pull To Refresh
a pull to refresh component for react-native, same api on both android and ios
Stars: ✭ 100 (+376.19%)
Mutual labels:  refresh
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue. If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (+7476.19%)
Mutual labels:  refresh
Smilerefresh
微笑下拉刷新。这是在 SwipeRefreshLayout基础上修改的下拉刷新库。
Stars: ✭ 203 (+866.67%)
Mutual labels:  refresh
Smoothrefreshlayout
一款支持上下拉刷新、越界回弹、二级刷新、横向刷新、拉伸回弹、平滑滚动、嵌套滚动的多功能刷新控件
Stars: ✭ 1,166 (+5452.38%)
Mutual labels:  refresh
Flutter easyrefresh
A flutter widget that provides pull-down refresh and pull-up load.
Stars: ✭ 2,989 (+14133.33%)
Mutual labels:  refresh
Flutter refresh
flutter refresh 上拉刷新 下拉加载 进度条
Stars: ✭ 51 (+142.86%)
Mutual labels:  refresh
Listloading
listloading是一个移动端的上拉、下拉加载更多的组件。主要依赖于iscroll.js v5.1.2基础上开发的组件,基础库可以使用jquery.js或者zepto.js操作dom节点,目前我是使用了zepto.js作为基础库操作dom,以jquery插件的形式存在。如果不想以插件方式使用,则只需要把listloading直接移植你需要的库里面就ok啦。listloading主要针对移动端而生,在使用浏览器自带滚动,用户体验很不友好,与Android和ios差别甚远,所以选择iscroll.js,它实现方式是使用css3动画translate 3D 转换来实现滚动效果,transform属性使用硬件加速,性能方法得到很大提高。 https://gtdalp.github.io/widget/listloading/demos/listloading.html
Stars: ✭ 169 (+704.76%)
Mutual labels:  refresh
YanXuanRefresh
仿网易严选下拉刷新动画效果
Stars: ✭ 37 (+76.19%)
Mutual labels:  refresh
react-pullrefresh
Pull to refresh react component.
Stars: ✭ 61 (+190.48%)
Mutual labels:  refresh
Mjrefresh
An easy way to use pull-to-refresh.
Stars: ✭ 13,565 (+64495.24%)
Mutual labels:  refresh

LCRefresh

0.2.0 更新动态

1、修复首次下拉刷新会产生table上移问题
2、优化刷新控件,自动管理刷新控件的生命周期,不用再手动释放监听


0.1.16 更新动态

1、修复数据未充满屏幕,上拉刷新问题
2、支持Carthage


0.1.15 更新动态

1、修复了销毁view崩溃bug 注意:在视图将要销毁的时候记得removeobserver


0.1.14 更新动态

1、修复了刷新结束时的动画问题。
2、修复了swift 关于 PI 的警告


使用 LCRefresh 非常方便,只需添加一行代码。

Pod 支持

pod 'LCRefresh', '~> 0.2.2'

Carthage 支持

github "liutongchao/LCRefresh"

添加下拉刷新 和 上拉加载
    import LCRefresh

    table.refreshHeader = LCRefreshHeader.init(refreshBlock: {
           print("Header 刷新")
            //TODO
     })

    table.refreshFooter = LCRefreshFooter.init(refreshBlock: {
             print("Footer 刷新")
            //TODO
     })
完成刷新
    weak var weakSelf = self
    if weakSelf!.table.isHeaderRefreshing() {
        weakSelf!.table.endHeaderRefreshing()
    }

    if weakSelf!.table.isFooterRefreshing() {
        weakSelf!.table.endFooterRefreshing()
    }
数据加载完毕
    weakSelf!.table.setDataLoadover()
    
    weakSelf!.table.resetDataLoad()
对象将要销毁时,移除观察者
    table.removeOffsetObserver()
刷新的效果图

HeaderRefresh.png

详细信息请移步到我的博客 Swift 让我来告诉你封装下拉刷新多么简单

--by West

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].