質問編集履歴
2
順番の入れ替え
test
CHANGED
File without changes
|
test
CHANGED
@@ -144,7 +144,11 @@
|
|
144
144
|
|
145
145
|
```
|
146
146
|
|
147
|
-
|
147
|
+
|
148
|
+
|
149
|
+
以下の記事を参考に
|
150
|
+
|
151
|
+
[UIImageをNSDataに変換し、SwiftでUIImageに変換し直しますか?](https://www.it-swarm.dev/ja/ios/uiimage%e3%82%92nsdata%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%97%e3%80%81swift%e3%81%a7uiimage%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%97%e7%9b%b4%e3%81%97%e3%81%be%e3%81%99%e3%81%8b%ef%bc%9f/1055952900/)
|
148
152
|
|
149
153
|
```swift
|
150
154
|
|
@@ -164,11 +168,17 @@
|
|
164
168
|
|
165
169
|
```
|
166
170
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
171
|
+
次のように変換したら
|
172
|
+
|
173
|
+
```
|
174
|
+
|
175
|
+
if let image = info[.originalImage] as? UIImage {
|
176
|
+
|
177
|
+
cameraView.image = image
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
|
172
182
|
|
173
183
|
let imageData: NSData = UIImagePNGRepresentation(image)
|
174
184
|
|
1
脱字
test
CHANGED
File without changes
|
test
CHANGED
@@ -144,6 +144,8 @@
|
|
144
144
|
|
145
145
|
```
|
146
146
|
|
147
|
+
直したいところ
|
148
|
+
|
147
149
|
```swift
|
148
150
|
|
149
151
|
if let image = info[.originalImage] as? UIImage {
|