zsisme
ios核心动画高级技巧

Updated 3 years ago

ling jia (@gitniko) started discussion #19

4 years ago · 0 comments

Open

尽管Core Foundation类型跟Cocoa对象在运行时貌似很像(被称作toll-free bridging),他们并不是类型兼容的,不过你可以通过bridged关键字转换。如果要给图层的寄宿图赋值,你可以按照以下这个方法:

contents属性 (Edit this file)

swift: testView.layer.contents = image?.CGImage

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant