Mimic UIAlertView Bounce?

前端 未结 4 1870
面向向阳花
面向向阳花 2020-12-23 02:15

Whats the best way to mimic the bouncing animation from the UIAlertView on the iPhone? Is there some built-in mechanism for this? The UIAlertView itself won\'t work for my n

4条回答
  •  悲&欢浪女
    2020-12-23 02:59

    You can use 2 animations, one to pop up to very large, and the other one to rescale back to normal size.

    (This is the approach use by UIAlertView internally.)

    Alternatively, you can use the lower-level CAAnimation and use +[CAMediaTimingFunction functionWithControlPoints::::] to make your own curve.

提交回复
热议问题