Ios 如何在选中UITableViewCell时为高度更改提供动画?
我使用的是Ios 如何在选中UITableViewCell时为高度更改提供动画?,ios,uitableview,Ios,Uitableview,我使用的是UITableView 表中显示了数据列表。我想在用户单击单元格时设置其动画 我怎么做?试试看。我想这会对你有帮助 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView beginUpdates]; [tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation
UITableView
表中显示了数据列表。我想在用户单击单元格时设置其动画
我怎么做?试试看。我想这会对你有帮助
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView beginUpdates];
[tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationTop];
[tableView endUpdates];
}
你做过什么调查吗?显示您尝试的代码并解释错误所在。检查以下链接: