nsmutalbe select
来源:互联网 发布:wap淘宝流量来源安全吗 编辑:程序博客网 时间:2024/05/20 20:46
- (void) setEditing:(BOOL)editting animated:(BOOL)animated
{
[self.tableViewsetEditing:edittinganimated:YES];
[self.tableViewsetMultipleTouchEnabled:YES];
// [self.tableView setEditing:editting animated:YES];
}
viewdidload()
self.tableView.allowsSelectionDuringEditing =YES;
self.tableView.allowsMultipleSelection =YES;
self.tableView.allowsMultipleSelectionDuringEditing =YES;
//select all row
-(IBAction)selectAll:(id)sender
{
UIButton *btn = (UIButton *)sender;
if (btn.tag == 0) {
for (int i =0; i<5; i++) {
NSIndexPath *myindexPath = [NSIndexPathindexPathForRow:iinSection:0];
[self.tableViewselectRowAtIndexPath:myindexPathanimated:YESscrollPosition:UITableViewScrollPositionNone];
}
btn.tag = 1;
}else{
for (int i =0; i<5; i++) {
NSIndexPath *myindexPath = [NSIndexPathindexPathForRow:iinSection:0];
[self.tableViewdeselectRowAtIndexPath:myindexPathanimated:YES];
}
btn.tag = 0;
}
}
- nsmutalbe select
- select()
- select
- select
- select
- select
- select
- select
- select
- select()
- select
- Select .....
- Select
- select
- select ''
- select
- select
- select
- MFC应用程序类型:单文档、多文档与基于对话框
- Sql Server 数据库的CRUD
- 计算1x3x5x...x(2n-1) (一个冬天没写程序,来个小的练练手。。嘿嘿。。)
- Hdu 1569 方格取数(2) (网络流最大点权独立集)
- iPhone图形开发绘图小结
- nsmutalbe select
- IT人的职操与理想-2013年3月江西IDC综述与排行榜
- 编写windows service
- 杭电1045
- SICP 习题答案1.11
- 一步一步教你做ios推送
- 题目1007:奥运排序问题
- 转:Pebble智能手表的工作原理与构造解析
- C#实现RSA加密解密源码