我正在尝试用一些发光效果为按钮设置动画。到目前为止,这是我得到的:self.glowLayer=[[CALayeralloc]init];self.glowLayer.contents=(__bridgeid_Nullable)(self.currentBackgroundImage.CGImage);self.glowLayer.opacity=0;//setto1withanimation.self.glowLayer.shadowColor=[UIColorvtoPinkColor].CGColor;self.glowLayer.shadowOffset=CGSizeZero;s