是否有一个刷新控制应用到一种方法UITableView,其是在设置UIViewController?
我发现的解决方案需要子类化UITableViewController,这对我来说很麻烦,因为我需要子类化UIViewController而不是a UITableViewController,我没有看到文档下的任何方法UITableView允许我对它设置刷新控件.
任何帮助将非常感谢!
Jay*_*ani 10
使用此UIRefreshControl控件:
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
[refreshControl addTarget:self action:@selector(refresh1:) forControlEvents:UIControlEventValueChanged];
[Delivered_TBL addSubview:refreshControl];
- (void)refresh1:(UIRefreshControl *)refreshControl
{
[self Service_Call];
[refreshControl endRefreshing];
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5016 次 |
| 最近记录: |