質問編集履歴

1

コードの追加

2018/04/12 08:02

投稿

Sue1215
Sue1215

スコア12

test CHANGED
File without changes
test CHANGED
@@ -14,6 +14,46 @@
14
14
 
15
15
 
16
16
 
17
+ またBでこのようにしてカメラを起動しています。
18
+
19
+ /// カメラ起動
20
+
21
+ private func exeStartCamera() {
22
+
23
+ LR.log(.info, className, .start, msg: "")
24
+
25
+
26
+
27
+ if !isCameraOn {
28
+
29
+ exeSetupCamera()
30
+
31
+ isCameraOn = true
32
+
33
+ } else {
34
+
35
+
36
+
37
+ ivLicense.image = nil
38
+
39
+
40
+
41
+ let setting = AVCapturePhotoSettings()
42
+
43
+ setting.flashMode = .auto
44
+
45
+ setting.isAutoStillImageStabilizationEnabled = true
46
+
47
+ setting.isHighResolutionPhotoEnabled = false
48
+
49
+
50
+
51
+ myImageOutput?.capturePhoto(with: setting, delegate: self)
52
+
53
+ isCameraOn = false
54
+
55
+ }
56
+
17
57
 
18
58
 
19
59