質問編集履歴
3
度重なる変更すみません。
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
2
余分なコードを削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
などの意見があればお聞かせ願いたいです。
|
13
13
|
|
14
14
|
```Swift
|
15
|
+
|
15
16
|
//: Playground - noun: a place where people can play
|
16
17
|
|
17
18
|
import UIKit
|
@@ -80,21 +81,16 @@
|
|
80
81
|
|
81
82
|
// MARK: - Custom Buttons -
|
82
83
|
class MyButton1 : UIButton, BaseButtonProtocol,
|
83
|
-
|
84
|
+
BGModesty, SETapClick, ButtonLabel {
|
84
85
|
var text = "click me!"
|
85
86
|
|
86
87
|
override init(frame: CGRect) {
|
87
88
|
super.init(frame: frame)
|
88
|
-
text = "foo"
|
89
89
|
background()
|
90
90
|
title()
|
91
|
-
addTarget(self, action: "
|
91
|
+
addTarget(self, action: "soundTap", forControlEvents: .TouchUpInside)
|
92
92
|
}
|
93
93
|
|
94
|
-
func didTap() {
|
95
|
-
soundTap()
|
96
|
-
}
|
97
|
-
|
98
94
|
required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") }
|
99
95
|
}
|
100
96
|
|
1
しょうもない訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
protocol BGNone : BGProtocol {}
|
25
25
|
extension BGNone {
|
26
26
|
func background() {
|
27
|
-
(self as! UIView).backgroundColor = UIColor.
|
27
|
+
(self as! UIView).backgroundColor = UIColor.clearColor()
|
28
28
|
(self as! UIView).layer.borderColor = UIColor.clearColor().CGColor
|
29
29
|
}
|
30
30
|
}
|