转自:http://blog.sina.com.cn/s/blog_9bf272cf01015i9b.html
UIView *singleMapView = [[UIView alloc] initWithFrame:CGRectMake(10, 150, 300, 250)]; singleMapView.backgroundColor = [UIColor blackColor]; [self.view addSubview:singleMapView]; singleMapView.transform = CGAffineTransformMakeScale(0.05, 0.05); [UIView animateWithDuration:3 animations:^{ singleMapView.transform = CGAffineTransformMakeScale(1.2, 1.2); }completion:^(BOOL finish){ [UIView animateWithDuration:3 animations:^{ singleMapView.transform = CGAffineTransformMakeScale(0.9, 0.9); }completion:^(BOOL finish){ [UIView animateWithDuration:3 animations:^{ singleMapView.transform = CGAffineTransformMakeScale(1, 1); }completion:^(BOOL finish){ }]; }]; }]; CGAffineTransformMakeScale 缩放函数,括号内为比例。+ (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion view由一个大小缩放到另外一个大小的动画效果。