objective c - iOS: Zoom in/out animation for showing an UIView -
i have 1 view controller, have 2 buttons. clicking on 1 button, i'll show uiview (size: 900 * 600) programmatically. right now, view comes clicking on button action. but, want have view coming if kind of "zoom in" animation , show user, , when user closes view, go "zoom out" , removed parent view.
could please suggest me, how can achieve animation?
thanks.
the property transform
animatable. create cgaffinetransformmakescale destination scale factor, , set
view.transform = scaletransform;
inside animation block.
Comments
Post a Comment