- (void)circularCharingAnimation
{
if (self.circularStopFlag) return;
[UIView animateWithDuration:2.0 animations:^{
self.circularImageView.alpha = 0.0;
// self.circularImageView.frame = CGRectMake(0, 0, 260.0, 260.0);
// self.circularImageView.center = self.cycleView.center;
//若用上边的写法,测试时在touch 5上运行动画效果会错位
self.circularImageView.frame = CGRectMake(30, -16.5, 260, 260);
} completion:^(BOOL finished) {
NSLog(@"self.circularImageView.frame = %@",NSStringFromCGRect(self.circularImageView.frame));
}];
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(4.0 * NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
self.circularImageView.alpha = 1.0;
self.circularImageView.frame = CGRectMake(0, 0, 184.0, 184.0);
self.circularImageView.center = self.cycleView.center;
[self circularCharingAnimation];
});
}