Widget “flip” behavior in Core Animation/Cocoa

前端 未结 7 1931
执笔经年
执笔经年 2020-11-30 02:31

I\'m trying to make a Card class that duplicates the behavior of Dashboard widgets in that you can put controls or images or whatever on two sides of the card and flip betwe

7条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 03:24

    It's overkill for your purposes (as it contains a largely-complete board and card game reference app), but check out this sample from ADC. The card games included with it do that flip effect quite nicely.

提交回复
热议问题