回答編集履歴
1
修正
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
let btn = Button(frame:CGRect(x:100, y:100, width:100, height: 100))
|
23
|
+
let btn = UIButton(frame:CGRect(x:100, y:100, width:100, height: 100))
|
24
24
|
|
25
25
|
btn.backgroundColor = .blue
|
26
26
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
-
extension
|
55
|
+
extension UIButton {
|
56
56
|
|
57
57
|
override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
|
58
58
|
|