Custom view layer (gradient frame modification) use [UIView performWithoutAnimation:^{}]; Unable to unanimate layer implicitlyCopy the code
Use [CATransaction begin]; [CATransaction setDisableActions: YES]; self.xxx.frame = self.xxx.bounds; [CATransaction commit];Copy the code