- (void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ //1.取消选中这一行 [tableView
deselectRowAtIndexPath:indexPath.....
分类:
其他好文 时间:
2014-07-22 22:59:54
阅读次数:
216
// Override to support conditional editing of the table view.- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath...
分类:
其他好文 时间:
2014-07-01 13:18:10
阅读次数:
526
#defineDARK_BACKGROUND[UIColorcolorWithRed:151.0/255.0green:152.0/255.0blue:155.0/255.0alpha:1.0];-(void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)indexPath{cell.backgroundColor=DARK_BACKGROUND;}
分类:
其他好文 时间:
2014-06-25 10:48:56
阅读次数:
264
- (float)tableView:(UITableView *)tableView
heightForRowAtIndexPath:(NSIndexPath *)indexPath{ NSString *str = [_dataArray
objectAtIndex:indexPath.row]...
分类:
移动开发 时间:
2014-06-13 07:20:35
阅读次数:
292
- (CGFloat)tableView:(UITableView *)tableView
heightForRowAtIndexPath:(NSIndexPath *)indexPath {// 列寬CGFloat contentWidth =
self.tableView.frame.size....
分类:
其他好文 时间:
2014-06-12 23:17:40
阅读次数:
358
UITableView删除分组最后一个元素,需要把分组同时删除。1.首先在数据源上删除数据。2.UI上删除cell:[tableView
deleteRowsAtIndexPaths:[NSArrayarrayWithObject:indexPath]
withRowAnimation:UITa.....
分类:
其他好文 时间:
2014-06-03 12:23:40
阅读次数:
206
1.取消选中这行[tableView deselectRowAtIndexPath:indexPath
animated:YES];2.去掉tableView的分割线(ios7)self.tableView.separatorStyle =
UITableViewCellSeparatorStyle...
分类:
其他好文 时间:
2014-05-26 12:47:25
阅读次数:
253
-(UITableViewCellEditingStyle)tableView:(UITableView
*)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
returnUITableViewCellEditin.....
分类:
其他好文 时间:
2014-05-14 09:04:33
阅读次数:
203
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.tableView
deselectRowAtIndexPath:[self.tableView
indexPathForSelectedRow] animated:YES];
}...
分类:
其他好文 时间:
2014-05-08 17:23:54
阅读次数:
261
-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(NSIndexPath*)indexPath{returnYES;}-(void)tableView:(UITableView*)tableViewcommitEditingStyle:(UITableViewCellEditingStyle)editingStyleforRowAtIndexPath:(NSIndexPath*)indexPath{if(editingStyle==U..
分类:
其他好文 时间:
2014-05-08 16:33:27
阅读次数:
205