在[self.tableView endUpdates]结束后调用方法 [英] Call a method after [self.tableView endUpdates] ended

查看:209
本文介绍了在[self.tableView endUpdates]结束后调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在动画结束后添加我的sliderButton,但这不起作用,它会在删除部分动画时添加按钮。

I want to add my sliderButton after the animation has ended but this doesn't work, it adds the button while the deletion of the section is being animated.

    [coursesTable beginUpdates];
    [coursesTable deleteSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationTop];
    [coursesTable endUpdates];
    [self.view addSubview:sliderButton];

我有可能在动画结束时调用一个为我做的方法吗?

Is there a possibility I can call a method that does that for me when the animation ended?

推荐答案

你可以在这里找到答案:

You can find the answer here:

如何在UITableView beginUpdates / endUpdates上检测到该动画已结束?

希望有所帮助!

这篇关于在[self.tableView endUpdates]结束后调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆