ios - Animate UIView to grow and shrink? -


i have uiview.

how can animate view view gets bigger (width, height) , reduced again original size?

simply apply uiview animation, apply reverse of animation original view.

uiview *myview = [[uiview alloc] initwithframe:cgrectmake(0,0,100,100)];  [uiview animatekeyframeswithduration:1.0                                delay:0.0                               options:uiviewanimationoptioncurveeasein | uiviewanimationoptionallowuserinteraction                            animations:^{                                myview.frame = cgrectmake(0,0,200,300);                             } completion:^(bool finished){  }]; 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -