Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这行代码将materialLayer添加到视图层。
view.layer.addSublayer(materialLayer)
如何从 UIView 中删除它?
@jtbandes 给出的答案是正确的。
materialLayer.removeFromSuperlayer()