我将CALayer作为子层添加到UIView的layer属性中,如下所示:_graphicLayer=[[GraphicLayeralloc]init];self.bounds=_graphicLayer.bounds;_graphicLayer.position=CGPointMake(CGRectGetMidX(self.bounds),CGRectGetMidY(self.bounds));[self.layeraddSublayer:_graphicLayer];如您所见,我更改了_graphicLayer的位置以考虑居中的anchorPoint。添加此子层后,我注意到它正在将