UIImageView 从左到右出现的动画效果

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];
 

你可能感兴趣的:(imageview)