- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if(该indexPath被选中) {
return 60 * 2.0;
}
return 60;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:TRUE];
//获取当前indexPath并判断对应的Cell是否被选中
[tableView beginUpdates];
[tableView endUpdates];
}
if(该indexPath被选中) {
return 60 * 2.0;
}
return 60;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:TRUE];
//获取当前indexPath并判断对应的Cell是否被选中
[tableView beginUpdates];
[tableView endUpdates];
}