質問編集履歴

3

lgBtn to UIColor.red

2018/01/18 18:34

投稿

soujomitsuura
soujomitsuura

スコア24

test CHANGED
File without changes
test CHANGED
@@ -94,13 +94,13 @@
94
94
 
95
95
  lgBtn.labelColor = UIColor.red
96
96
 
97
- lgBtn.setTitleColor(lgBtn.UIColor.red, for: .normal)
97
+ lgBtn.setTitleColor(UIColor.red, for: .normal)
98
98
 
99
99
  //それ以外への効果(この一行が違うので直したい)
100
100
 
101
101
  //②再登録すればカラーが変更されると思っていたがされなかった。
102
102
 
103
- sender.setTitleColor(lgBtn.UIColor.red, for: .normal)
103
+ sender.setTitleColor(UIColor.red, for: .normal)
104
104
 
105
105
  //クリック自身への効果
106
106
 

2

labelColor to UIColor.red

2018/01/18 18:34

投稿

soujomitsuura
soujomitsuura

スコア24

test CHANGED
File without changes
test CHANGED
@@ -94,13 +94,13 @@
94
94
 
95
95
  lgBtn.labelColor = UIColor.red
96
96
 
97
- lgBtn.setTitleColor(lgBtn.labelColor, for: .normal)
97
+ lgBtn.setTitleColor(lgBtn.UIColor.red, for: .normal)
98
98
 
99
99
  //それ以外への効果(この一行が違うので直したい)
100
100
 
101
101
  //②再登録すればカラーが変更されると思っていたがされなかった。
102
102
 
103
- sender.setTitleColor(lgBtn.labelColor, for: .normal)
103
+ sender.setTitleColor(lgBtn.UIColor.red, for: .normal)
104
104
 
105
105
  //クリック自身への効果
106
106
 

1

Anyobject to UiButton

2018/01/18 18:33

投稿

soujomitsuura
soujomitsuura

スコア24

test CHANGED
File without changes
test CHANGED
@@ -88,7 +88,7 @@
88
88
 
89
89
 
90
90
 
91
- @objc func buttonTapped(sender : AnyObject) {
91
+ @objc func buttonTapped(sender : UIButton) {
92
92
 
93
93
  let lgBtn = LgBtn()
94
94