UIView动画块未等待
|
我有以下代码:
[UIView animateWithDuration:0.8
animations:^{
[self methodToRun];
}
completion:^(BOOL finished){
[self anotherMethod];
}];
尽管methodToRun中有东西,但应用程序不会等待0.8秒,而是继续运行anotherMethod。有什么办法可以让我等待0.8秒再运行第二个位吗?
没有找到相关结果
已邀请:
2 个回复
蔬谢窗港
曝匿弄罚
延迟的示例,就像您在问题中使用的那样: