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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -