zoukankan      html  css  js  c++  java
  • iOS

    UIRefreshControl:UIControl (UIControl:UIView)

      

    使用一:

      UITableView之Cell刷新,UIRefreshControl为其一属性.

         self.customTableView.refreshControl = [[UIRefreshControl alloc] init];

         [self.customTableView.refreshControl addTarget:self action:@selector(doRefresh:)    forControlEvents:UIControlEventValueChanged];    

    }

    - (void)doRefresh:(UIRefreshControl *)sender {

        NSLog(@"refreshing");

        [self.customTableView.refreshControl performSelector:@selector(endRefreshing) withObject:nil afterDelay:1.0];

    }

    喜欢请赞赏一下啦^_^

    微信赞赏

    支付宝赞赏

  • 相关阅读:
    AS3 Signals
    Activate、Deactivate 事件 Activate ThrottleEvent;
    Git 单机版
    SVN 快速入门
    Git 简介
    SVN
    Git
    Python 对目录做遍历
    Python hashlib 模块
    __name__
  • 原文地址:https://www.cnblogs.com/share-iOS/p/6426572.html
Copyright © 2011-2022 走看看