我有一些基于CoreAnimation的自定义UI.我想实现某些CALayers的鼠标拖动,我想将拖动图层的图像粘贴到光标上.问题是,我无法将CALayer(不是基于图像/ .contents)变成某种形式的图像 - 如CGImageRef或NSImage.有任何想法吗?
cocoa core-animation core-graphics objective-c
cocoa ×1
core-animation ×1
core-graphics ×1
objective-c ×1