向左滑动#pragma mark - 设置 tableView 能否编辑
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
return YES;
}#pragma mark - 左滑动哪种编辑状态
- (UITableViewCellEditingStyle...
分类:
其他好文 时间:
2015-07-11 15:08:47
阅读次数:
358
1 // 2 //选中商品调用支付宝快捷支付接口 3 // 4 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 5 { 6 /* 7 *点击获取p...
分类:
其他好文 时间:
2015-07-09 21:09:25
阅读次数:
130
如果想实现滑动cell时,cell右边就能显示一个删除按钮,则要实现tableview 下边方法:
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath ...
分类:
其他好文 时间:
2015-07-09 14:33:40
阅读次数:
101
1 //当有很多种cell时的写法-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 2 { 3 return [self.theDataSour...
分类:
移动开发 时间:
2015-07-08 22:29:46
阅读次数:
166
原文:http://blog.csdn.net/mengtnt/article/details/6733691 前面说过了viewController的一些基本注意事项。这里针对不同的viewController类,描述一下各自用法的注意事项。至于每种viewController的基本用法,可以.....
分类:
其他好文 时间:
2015-07-08 12:28:12
阅读次数:
139
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString *cellIdentifier = @"LeftTab...
分类:
其他好文 时间:
2015-06-30 20:20:35
阅读次数:
102
今天在用delegate传值的时候遇到一个BUG是想在A:UIViewController和B:UITableViewController之间传值,在B中取到Cell的indexPath.row的值传到A中,在A中接收后,就是NUL,没有错误提示。最后发现协议的方法传的参数(NSIntager)不用加*号,这白痴的错误......A.//跳转到选择功..
分类:
其他好文 时间:
2015-06-18 02:04:43
阅读次数:
158
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{ if (indexPath.section == 0) { return NO; } ...
分类:
其他好文 时间:
2015-06-16 16:01:41
阅读次数:
116
实现三个代理方法即可-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath { return @"删除"...
分类:
其他好文 时间:
2015-06-15 12:55:38
阅读次数:
98
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath:indexPath animated:YE.....
分类:
其他好文 时间:
2015-06-13 14:08:30
阅读次数:
106