jjzjj

rectangleView

全部标签

ios - swift uiview 没有名为 center 的成员

这是我的RectangleView:importUIKitclassRectangleView:UIView{init(frame:CGRect){//Initializationcodesuper.init(frame:frame)}/*overridefuncdrawRect(rect:CGRect){//Drawingcode}*/}我在我的CustomViewController上添加了这个RectangleView:importUIKitclassCustomViewController:UIViewController{varballX:Int=0varballY:Int=