iOS中tableView实现选中cell改变cell的大小

/ 0评 / 0

今天遇到了这个问题,就看了看,原来如此简单。

UITableViewCell* CellAtIndex = [tableView CellForRowAtIndexPath:indexPath];
CGRect frame2 = CellAtIndex.frame;
frame2.size.height += 10;
[CellAtIndex setFrame:frame2]; 

放进你的didSelect 里面,你选中的row就会变高了!

评论已关闭。