How can I slide a view in and out of a window in a Cocoa program

后端 未结 4 638
慢半拍i
慢半拍i 2020-12-28 21:40

I want to have a view on a window and in response to a message (button click or menu) I want to have another view slide down above it, and have the first view resize.

<
4条回答
  •  被撕碎了的回忆
    2020-12-28 21:57

    It should be noted if you don't set a duration for the animation block, the default is about 0.25 seconds, which actually seems to work very well in most cases.

    I suggest trying with that duration first whenever experimenting with CoreAnimation.

提交回复
热议问题