質問編集履歴

3

度重なる変更すみません。

2015/08/26 07:48

投稿

taratail
taratail

スコア76

test CHANGED
File without changes
test CHANGED
File without changes

2

余分なコードを削除

2015/08/26 07:48

投稿

taratail
taratail

スコア76

test CHANGED
File without changes
test CHANGED
@@ -25,6 +25,8 @@
25
25
 
26
26
 
27
27
  ```Swift
28
+
29
+
28
30
 
29
31
  //: Playground - noun: a place where people can play
30
32
 
@@ -162,7 +164,7 @@
162
164
 
163
165
  class MyButton1 : UIButton, BaseButtonProtocol,
164
166
 
165
- BGModesty, SETapClick, ButtonLabel {
167
+ BGModesty, SETapClick, ButtonLabel {
166
168
 
167
169
  var text = "click me!"
168
170
 
@@ -172,21 +174,11 @@
172
174
 
173
175
  super.init(frame: frame)
174
176
 
175
- text = "foo"
176
-
177
177
  background()
178
178
 
179
179
  title()
180
180
 
181
- addTarget(self, action: "didTap", forControlEvents: .TouchUpInside)
181
+ addTarget(self, action: "soundTap", forControlEvents: .TouchUpInside)
182
-
183
- }
184
-
185
-
186
-
187
- func didTap() {
188
-
189
- soundTap()
190
182
 
191
183
  }
192
184
 

1

しょうもない訂正

2015/08/26 07:37

投稿

taratail
taratail

スコア76

test CHANGED
File without changes
test CHANGED
@@ -50,7 +50,7 @@
50
50
 
51
51
  func background() {
52
52
 
53
- (self as! UIView).backgroundColor = UIColor.greenColor()
53
+ (self as! UIView).backgroundColor = UIColor.clearColor()
54
54
 
55
55
  (self as! UIView).layer.borderColor = UIColor.clearColor().CGColor
56
56