How to make an slide animation while bringing an custom view in Cocoa?

前端 未结 4 1741
礼貌的吻别
礼貌的吻别 2020-12-13 08:16

I\'m developing an app where when clicking to a button, custom view should slide from a side. Actually just a window appears, but I\'d like to have something like iOS naviga

4条回答
  •  时光说笑
    2020-12-13 08:27

    iain's answer is great! If it doesn't work, check if you call [prentView setWantsLayer:YES] somewhere in your code.

提交回复
热议问题