我有这段代码:
[UIView animateWithDuration:0.8
animations:^{
[self methodToRun];
}
completion:^(BOOL finished){
[self anotherMethod];
}];
虽然方法methodToRun中有一些内容,但应用程序却不等待0.8秒钟,而是继续运行另一个方法anotherMethod。我能否简单地在运行第二部分之前等待0.8秒钟?