我正在使用程序化的标准方式来制作按钮阴影,但是当我完成按钮后,我希望阴影不再存在。我可以将不透明度设置为0,但是阴影是否仍然存在?如果存在,是否仍会影响系统性能?谢谢。
这会导致错误。
这会导致错误。
tempButton.superview.layer.shadowOffset = nil;
tempButton.superview.layer.shadowRadius = nil;
tempButton.superview.layer.shadowOpacity = nil;