我正在尝试将图像"resizeLayer"添加到我的UIViewselectedShape上,方法是在selectedShape上进行子层化letsublayer=CALayer()sublayer.bounds=selectedShape.bounds//evenwheninsertedthisline,sublayerstilldoesn'tshowupsublayer.frame=selectedShape.framesublayer.contents=UIImage(named:"resizeLayer")selectedShape?.layer.addSublayer(sub