質問編集履歴
2
コードを一部変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -195,7 +195,7 @@
|
|
195
195
|
let selectbutton = UIButton(type: UIButton.ButtonType.custom)
|
196
196
|
selectbutton.setTitle("選択", for: .normal)
|
197
197
|
selectbutton.setTitleColor(UINavigationBar.appearance().tintColor ?? self.imagePickerController.navigationBar.tintColor, for: .normal)
|
198
|
-
selectbutton.addTarget(self, action: #selector(
|
198
|
+
selectbutton.addTarget(self, action: #selector(selectTap), for: .touchUpInside)
|
199
199
|
return selectbutton
|
200
200
|
}
|
201
201
|
|
@@ -216,7 +216,12 @@
|
|
216
216
|
cancelButton.target = imagePickerController
|
217
217
|
vc.navigationItem.leftBarButtonItem = cancelButton
|
218
218
|
}
|
219
|
-
|
219
|
+
@objc func selectTap() {
|
220
|
+
|
221
|
+
imagePickerController.dismiss(animated: true)
|
222
|
+
|
223
|
+
}
|
224
|
+
|
220
225
|
}
|
221
226
|
|
222
227
|
```
|
1
画像を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -220,3 +220,6 @@
|
|
220
220
|
}
|
221
221
|
|
222
222
|
```
|
223
|
+
![![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-07-06/69129703-dfdf-472b-adb7-7afe3388a44c.png)](https://ddjkaamml8q8x.cloudfront.net/questions/2022-07-06/ec9bef3e-2578-447f-827f-cc1dc153cab6.png)
|
224
|
+
![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-07-06/1c394a94-8d3a-4577-a9d3-c2e68be505f3.png)
|
225
|
+
|