ios - Bouncing animation while changing view frame -


add bouncing animation while changing uiview frame. know how change frame don't know how set bouncing effect while changing view frame. below code....

[uiview animatewithduration:0.3 delay:0.0 options:uiviewanimationoptionbeginfromcurrentstate animations:^{  cgrect frame = viewcontent.frame; frame.size.height = cgrectgetheight(viewcontentfulldetail); viewcontent.frame = frame;  } completion:^(bool finished) {        }]; 

you can check animated gif image on below link. want add animation not same near this. main animation unfolding , bouncing effect.

https://drive.google.com/open?id=0b9k_shyb5v62efdxwxhyexv3a0e

please help. don't know how this.

you need try this

int duration, damping, velocity; [uiview animatewithduration:duration delay:0      usingspringwithdamping:damping initialspringvelocity:velocity      options:0 animations:^{     // animation code here  } completion:nil]; 

play damping , velocity values know more feature in animation code. here link tutorial


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -