iOS - UIRefreshControl

原文链接: http://www.cnblogs.com/share-iOS/p/6426572.html

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

扫描二维码关注公众号,回复: 6774688 查看本文章

}

转载于:https://www.cnblogs.com/share-iOS/p/6426572.html

猜你喜欢

转载自blog.csdn.net/weixin_30781433/article/details/94799110
ios