UIView animation

前端 未结 5 2062
醉话见心
醉话见心 2020-12-30 18:00

I am trying to animate a UIView here. It looks like a rectangle, and I just want to translate it to my coordinations.

So, how can I animate it? I tried

5条回答
  •  -上瘾入骨i
    2020-12-30 18:48

    [UIView beginAnimations:@"your text" context:nil];
    [UIView setAnimationDuration:0.4]; //Your animation duration
    [UIView setAnimationDelegate:self];
    //
    write your code here , what you want to animate
    //
    [UIView commitAnimations];
    

    Working Fine definitely.

提交回复
热议问题