0
나는 UIPanGestureRecognizer스위프트 오류
button.setTranslatesAutoresizingMaskIntoConstraints(false)
let line = ("\(p.x % snapX)")
let column = ("\(p.x % snapY)")
let constraint2 = NSLayoutConstraint(item: button, attribute: .CenterX, relatedBy: .Equal, toItem: view, attribute: .CenterX, multiplier: 1, constant: CGFloat(line))
let constraint3 = NSLayoutConstraint(item: button, attribute: .CenterY, relatedBy: .Equal, toItem: view, attribute: .CenterY, multiplier: 1, constant: CGFloat(column))
view.addConstraints([constraint2,constraint3])
로 이동 버튼에 대한 몇 가지 제약 조건을 만들려고 해요하지만 난은 "멤버를 찾을 수 없습니다 'CenterX'오류
시 라인을 가지고 .과 열은 예를 컴파일러가 잘못된 열거 형에 CenterX을 찾기 위해 노력하고있다처럼 27.6666564941406 및 0.666656494140625