系统默认的刷新方法(UIRefreshControl)
来源:互联网 发布:linux 挂起 编辑:程序博客网 时间:2024/06/04 23:28
系统默认的刷新方法(下拉)
@property (nonatomic, retain) UIRefreshControl *control;
- (void)viewDidLoad {
[super viewDidLoad];
//系统默认的刷新(下拉)
self.control = [[UIRefreshControl alloc] init];
self.control.attributedTitle = [[NSAttributedString alloc] initWithString:@"正在加载数据..."];
[self.view addSubview:self.control];
[_control release];
[self.control addTarget:self action:@selector(changeValue:) forControlEvents:UIControlEventValueChanged];
}
- (void)changeValue:(UIRefreshControl *)control {
[self.control endRefreshing]; // 关闭刷新效果
[self.nameList addObject:@"someOne"];
[self.tableView reloadData];
}
0 0
- 系统默认的刷新方法(UIRefreshControl)
- UIRefreshControl系统下拉刷新
- UIRefreshControl(下拉刷新系统控件)
- 系统自带的UIRefreshControl下拉刷新的用法
- 哈04-xcode系统自带的刷新控件UIRefreshControl
- 使用系统自带的 UIRefreshControl 实现下拉刷新
- 使用系统自带的 UIRefreshControl 实现下拉刷新
- iOS之UIRefreshControl系统下拉刷新
- UIRefreshControl刷新
- UIRefreshControl 刷新
- UIRefreshControl 实现UITableView的下拉刷新
- iOS之UITableView(二)系统自带的刷新UIrefreshControl
- 系统UIRefreshControl 的简单使用代码
- UIRefreshControl下拉刷新
- UIRefreshControl代码刷新
- UIRefreshControl自动刷新
- 下拉刷新,UIRefreshControl
- UIRefreshControl下拉刷新
- koa2快速搭建api服务器-创建路由及定义GET和POST请求
- 记录一些开源项目
- java静态块的执行顺序
- Hadoop日志存放路径详解
- ARM基础了解
- 系统默认的刷新方法(UIRefreshControl)
- Spring JdbcTemplate Exception摘记
- 【论文学习笔记】Joint Cascade Face Detection and Alignment
- 可重入和线程安全
- Computer System: A programmer's perspective 深入理解计算机操作系统(读书笔记)
- Android 之Activity
- 是男人就下100层(简仿)
- vc 关闭程序后任务管理器进程中进程仍然存在的解决方法
- Android SDK开发包国内下载地址