How to wait for an animator to finish?

前端 未结 3 675
旧时难觅i
旧时难觅i 2021-01-06 02:35

This is probably a simple question but I can\'t seem to figure out how to do it. Basically all I want to do is fade a window before closing it:

[[window anim         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-01-06 03:06

    Implicit animations triggered through the animator proxy run on wall time. Get the duration from the current NSAnimationContext and perform delay your cleanup/post-animation operations using that interval.

提交回复
热议问题