zsisme
ios核心动画高级技巧

Updated 3 years ago

liona liona (@lionaliona) started discussion #14

4 years ago · 0 comments

Open

CALayer的contentsRect属性允许我们在图层边框里显示寄宿图的一个子域。这涉及到图片是如何显示和拉伸的,所以要比contentsGravity灵活多了

contents属性 (Edit this file)

contentsRect可以用来做拼图的截取,也可以用来做照相时头像的截取

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