旋转超级视图上的 ClipsToBounds
我在旋转的超级视图上添加一个子视图,并希望它剪辑到超级视图边界。
我知道边界是旋转视图周围的矩形,并且知道我不想将其剪切到超级视图边界,但我希望它剪切到旋转超级视图的实际边界。
这是怎么做到的?
I am adding a subview on a rotated superview and want it to clip to the superviews bounds.
I know that the bounds are the rectangle around the rotated view and by knowing that I DON'T want to clip it to the superviews bounds but I want it to clip at the actual borders of the rotated superview.
How is that done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论