質問編集履歴
3
lgBtn to UIColor.red
test
CHANGED
File without changes
|
test
CHANGED
@@ -94,13 +94,13 @@
|
|
94
94
|
|
95
95
|
lgBtn.labelColor = UIColor.red
|
96
96
|
|
97
|
-
lgBtn.setTitleColor(
|
97
|
+
lgBtn.setTitleColor(UIColor.red, for: .normal)
|
98
98
|
|
99
99
|
//それ以外への効果(この一行が違うので直したい)
|
100
100
|
|
101
101
|
//②再登録すればカラーが変更されると思っていたがされなかった。
|
102
102
|
|
103
|
-
sender.setTitleColor(
|
103
|
+
sender.setTitleColor(UIColor.red, for: .normal)
|
104
104
|
|
105
105
|
//クリック自身への効果
|
106
106
|
|
2
labelColor to UIColor.red
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.
|
97
|
+
lgBtn.setTitleColor(lgBtn.UIColor.red, for: .normal)
|
98
98
|
|
99
99
|
//それ以外への効果(この一行が違うので直したい)
|
100
100
|
|
101
101
|
//②再登録すればカラーが変更されると思っていたがされなかった。
|
102
102
|
|
103
|
-
sender.setTitleColor(lgBtn.
|
103
|
+
sender.setTitleColor(lgBtn.UIColor.red, for: .normal)
|
104
104
|
|
105
105
|
//クリック自身への効果
|
106
106
|
|
1
Anyobject to UiButton
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,7 +88,7 @@
|
|
88
88
|
|
89
89
|
|
90
90
|
|
91
|
-
@objc func buttonTapped(sender :
|
91
|
+
@objc func buttonTapped(sender : UIButton) {
|
92
92
|
|
93
93
|
let lgBtn = LgBtn()
|
94
94
|
|