# CBReflesh **Repository Path**: huqs/CBReflesh ## Basic Information - **Project Name**: CBReflesh - **Description**: tableView下拉刷新 - **Primary Language**: Swift - **License**: Not specified - **Default Branch**: huqs - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-05-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #pullToReflesh-Swift
![](https://d13yacurqjgara.cloudfront.net/users/141880/screenshots/2542648/dailyui-094.gif "Demo GIF Animation")
**Dribbble**网址:[Daily-UI-094-News](https://dribbble.com/shots/2542648-Daily-UI-094-News) ## Usage ### Wrap your scrollView ``` let tableViewWrapper = PullToRefleshView(scrollView: yourTableView) bodyView.addSubview(tableViewWrapper) ``` The color of the wrapper will be same as your scrollView's background color. ### Handler ``` tableViewWrapper.didPullToRefresh = { //you can do anythings you want after beginning to reflesh } ``` You can end the reflesh simplily ``` tableViewWrapper.endReflesh() ```