UIView的飞入效果

将UIView的最初位置置为窗口之外,然后通过一个动画来实现UIView的飞入效果,固定好进入的位置。

 [newvision setFrame:CGRectMake(-200,30,175,145)];
    
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:1]; //动画时长
    [newvision setFrame:CGRectMake(5,30,175,145)];
    [UIView commitAnimations]; 
原文地址:https://www.cnblogs.com/foxmin/p/2482105.html