PullToMakeSoup, 自定義下拉刷新的動畫效果
PullToMakeSoup, 自定義下拉刷新的動畫效果。
Requirements
- iOS 8.0+
- Xcode 6.3
- Swift 1.2 </ul>
Installing with CocoaPods
use_frameworks! pod 'PullToMakeSoup', '~> 1.0'
Usage
At first, import PullToMakeSoup framework:
import PullToMakeSoup
Create refresher:
let refresher = PullToMakeSoup()
Add refresher to your UIScrollView subclass and provide action block:
tableView.addPullToRefresh(refresher, action: { // action to be performed (pull data from some source) })
After the action is completed and you want to hide the refresher:
tableView.endRefresing()You can also start refreshing programmatically:
tableView.startRefreshing()Component was implemented based on customizable pull-to-refresh
本文由用戶 x286 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!