アニメーションの完了後にコードのブロックを実行したいのですが、コンパイラに次のエラーが表示されます。
これが私のコードです。何が間違っているのかわかりません。助けてください、ありがとう。
[UIView transitionWithView:self.view duration:1.5
options:UIViewAnimationOptionTransitionFlipFromBottom //change to whatever animation you like
animations:^ {
[self.view addSubview:myImageView1];
[self.view addSubview:myImageView2];
}
completion:^ {
NSLog(@"Animations completed.");
// do something...
}];