回答編集履歴
4
s
answer
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
```swift
|
4
4
|
@IBAction func keisan(_ sender: UIButton) {
|
5
|
-
...
|
5
|
+
...今までの処理
|
6
6
|
}
|
7
7
|
|
8
8
|
@IBAction func reset(_ sender: UIButton) {
|
3
s
answer
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
各テキストフィールドに空文字を代入すれば良いと思います。
|
2
2
|
|
3
3
|
```swift
|
4
|
+
@IBAction func keisan(_ sender: UIButton) {
|
5
|
+
...
|
6
|
+
}
|
7
|
+
|
4
8
|
@IBAction func reset(_ sender: UIButton) {
|
5
9
|
ninzu.text = ""
|
6
10
|
kingaku.text = ""
|
2
s
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
テキストフィールド
|
1
|
+
各テキストフィールドに空文字を代入すれば良いと思います。
|
2
2
|
|
3
3
|
```swift
|
4
4
|
@IBAction func reset(_ sender: UIButton) {
|
1
s
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
テキストフィールドを空
|
1
|
+
テキストフィールドを空文字を代入すれば良いと思います。
|
2
2
|
|
3
3
|
```swift
|
4
4
|
@IBAction func reset(_ sender: UIButton) {
|