自定義動畫改變背景顏色
//add a custom action
self.colorLayer.actions = @{@ "backgroundColor" : transition};
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
//add a custom action
self.colorLayer.actions = @{@ "backgroundColor" : transition};
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|