CATiledLayer 重绘底层子视图
我有两个子类 UIView 作为 UIViewController 视图的子视图。 第一个 UIView 将 CATiledLayer 作为图层类。并将其放置在背景上。第二个 UIView 放置在第一个之上。我想用CATiledLayer重绘UIView。我尝试调用 [myView.layer setNeedsDisplay] 但它不起作用。
I have two subclassed UIView as subviews of UIViewController's view.
First UIView has CATiledLayer as a layer class. And it placed on background. Second UIView placed above first. I want to redraw UIView with CATiledLayer. I've tried to call [myView.layer setNeedsDisplay] but it doesn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎所有CATiledLayers都用于绘制相同的线程或以其他方式干扰。所有CATiledLayers将从后到前连续绘制。
It seems that all CATiledLayers use for drawing the same thread(s) or interfere somehow else. All CATiledLayers will be drawn serially from back to front.