I use an animator to implement animations like
[[self.view animator] setFrame:newFrame];
but I want to run a method or block after the animation is finished, as shown below:
[[self.view animator] setFrame:newFrame onComplete:^{
NSLog(@"****");
}];
Is there any way to implement it?
source
share