• 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];

    }

    喜欢请赞赏一下啦^_^

    微信赞赏

    支付宝赞赏

  • 相关阅读:
    C#之时间统计
    Unity之屏幕画线
    Unity之坐标转换
    Unity3d之按键
    Unity3d之截图
    [Windows]A盘凭空消失
    函数的多类型传值
    isdigit()
    函数的返回值
    locals()
  • 原文地址:https://www.cnblogs.com/share-iOS/p/6426572.html
Copyright © 2020-2023  润新知