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
Post a Comment