[UIView beginAnimations:@"test" context:nil];
[UIView setAnimationRepeatAutoreverses:YES];
[UIView setAnimationRepeatCount:10];
[UIView setAnimationDuration:2];
_imageview.alpha = 0.2;
_imageview.center = self.view.center;
[UIView commitAnimations];
-(void)beginAnimation
{
[UIView animateWithDuration:2 animations:^{
_imageview.alpha = 0.2;
} completion:^(BOOL finished) {
[_imageview setTransform:CGAffineTransformScale(_imageview.transform, 3, 3)];
}];
}