PullToMakeSoup, 自定義下拉刷新的動畫效果

x286 10年前發布 | 23K 次閱讀 iOS開發 移動開發 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


    項目主頁:
    http://www.baiduhome.net/lib/view/home/1432539156972

 本文由用戶 x286 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!