iOS - UIRefreshControl
生活随笔
收集整理的這篇文章主要介紹了
iOS - UIRefreshControl
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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];
}
?
轉載于:https://www.cnblogs.com/share-iOS/p/6426572.html
總結
以上是生活随笔為你收集整理的iOS - UIRefreshControl的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 枚举进程再来两弹
- 下一篇: C#使用Gecko实现浏览器