通过uiview动画来放大图片

UIImage *image=[UIImage imageNamed:@"1"];
    UIImageView *imageView=[[UIImageView alloc]init];
    imageView.image=image;
    imageView.frame=CGRectMake(120, 140, 80, 80);
    [self.view addSubview:imageView];
    
    [UIView animateKeyframesWithDuration:2 delay:2 options:UIViewKeyframeAnimationOptionBeginFromCurrentState animations:^{
        imageView.frame=CGRectMake(80, 100, 160, 160);
        
    } completion:nil];
    

 

posted @ 2015-03-12 15:18  曹县三胖暴打大猩猩  阅读(117)  评论(0编辑  收藏  举报