我有这个代码:
[UIView animateWithDuration:0.8
animations:^{
[self methodToRun];
}
completion:^(BOOL finished){
[self anotherMethod];
}];
虽然在 methodToRun 中有一些东西,但应用程序不会等待 0.8 秒,而是继续运行另一个方法。有什么办法可以让我在运行第二位之前等待 0.8 秒?