回答編集履歴
2
訂正
answer
CHANGED
@@ -52,7 +52,7 @@
|
|
52
52
|
= !(self.alert?.textFields?.last?.text?.isEmpty ?? true)
|
53
53
|
|
54
54
|
self.alert?.actions.first?.isEnabled
|
55
|
-
= existsFirstText && existsSecondText
|
55
|
+
= existsFirstText && existsSecondText
|
56
56
|
}
|
57
57
|
return true
|
58
58
|
}
|
1
訂正
answer
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
[こんなんで、](https://github.com/tyobigoro/tAlertController)
|
2
2
|
|
3
|
-
|
4
3
|
```swift
|
5
4
|
import UIKit
|
6
5
|
|
@@ -59,4 +58,6 @@
|
|
59
58
|
}
|
60
59
|
|
61
60
|
}
|
62
|
-
```
|
61
|
+
```
|
62
|
+
|
63
|
+
適当な`!`の連発をやめれば質問のコードのままでも動くと思いますよ。
|