---
title: "UIImageView 从左到右出现的动画效果"
author: "helmsman_xcode"
date: "2011-08-11T11:47:15Z"
tags: []
categories: ["移动开发"]
slug: "uiimageview"
draft: false
lastmod: "2011-08-11T14:27:57Z"
id: 1145489
url: "https://helmsman-xcode.iteye.com/blog/1145489"
---

```
UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 0, 460)];
    [imgView setImage:[UIImage imageNamed:@"pagethr.png"]];
    self.imageViews = imgView;
    [self.view addSubview:imageViews];
    [imgView release];
    
    CGContextRef  context = UIGraphicsGetCurrentContext();
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationCurve:UIViewAnimationCurveLinear];
    [UIView setAnimationDuration:0.75];
    
    [imageViews setFrame:CGRectMake(0, 0, 320, 460)];
    [UIView commitAnimations];
```