質問するログイン新規登録

質問編集履歴

1

コードの追加

2018/04/12 08:02

投稿

Sue1215
Sue1215

スコア12

title CHANGED
File without changes
body CHANGED
@@ -6,6 +6,26 @@
6
6
 
7
7
  このように違うViewControllerで宣言したものは違うViewControllerではつかえないのでしょうか。
8
8
 
9
+ またBでこのようにしてカメラを起動しています。
10
+ /// カメラ起動
11
+ private func exeStartCamera() {
12
+ LR.log(.info, className, .start, msg: "")
9
13
 
14
+ if !isCameraOn {
15
+ exeSetupCamera()
16
+ isCameraOn = true
17
+ } else {
10
18
 
19
+ ivLicense.image = nil
20
+
21
+ let setting = AVCapturePhotoSettings()
22
+ setting.flashMode = .auto
23
+ setting.isAutoStillImageStabilizationEnabled = true
24
+ setting.isHighResolutionPhotoEnabled = false
25
+
26
+ myImageOutput?.capturePhoto(with: setting, delegate: self)
27
+ isCameraOn = false
28
+ }
29
+
30
+
11
31
  よろしくお願いします。