質問編集履歴

4

2019/03/10 09:59

投稿

1901drama
1901drama

スコア20

test CHANGED
File without changes
test CHANGED
@@ -6,9 +6,9 @@
6
6
 
7
7
  以下の例を参考に、MultipeerとNSKeyedArchiver.archivedData/NSKeyedUnarchiver.unarchiveObjectを利用した端末間のデータ通信処理を実装しています。
8
8
 
9
- [Multipeer](https://qiita.com/tomoyuki_HAYAKAWA/items/9c6fe8929633ba1476eb)
9
+ [BluetoothをもちいたiOS同士の通信](https://qiita.com/tomoyuki_HAYAKAWA/items/9c6fe8929633ba1476eb)
10
10
 
11
- [ ](https://qiita.com/Nirma/items/3fc46e50383a2b83b496)
11
+ [Swift 4のCodable x UserDefaults](https://qiita.com/Nirma/items/3fc46e50383a2b83b496)
12
12
 
13
13
 
14
14
 
@@ -56,7 +56,11 @@
56
56
 
57
57
  ※1:hitTestResult.node.accessibilityValue! には、送信する側の端末の動画ファイルのディレクトリが代入されています。
58
58
 
59
+ ※2:ERRが出ています。(ただし修正後も構文エラーになります)
60
+
61
+ if let video = try NSKeyedUnarchiver.unarchivedObject(ofClass: data.self, from: data)
62
+
59
- ※2:ERRが出ています。Incorrect argument label in call (have 'ofClass:from:', expected 'ofClasses:from:')
63
+ Incorrect argument label in call (have 'ofClass:from:', expected 'ofClasses:from:')
60
64
 
61
65
  Replace 'ofClass' with 'ofClasses'
62
66
 

3

2019/03/10 09:59

投稿

1901drama
1901drama

スコア20

test CHANGED
File without changes
test CHANGED
@@ -6,9 +6,9 @@
6
6
 
7
7
  以下の例を参考に、MultipeerとNSKeyedArchiver.archivedData/NSKeyedUnarchiver.unarchiveObjectを利用した端末間のデータ通信処理を実装しています。
8
8
 
9
- https://qiita.com/tomoyuki_HAYAKAWA/items/9c6fe8929633ba1476eb
9
+ [Multipeer](https://qiita.com/tomoyuki_HAYAKAWA/items/9c6fe8929633ba1476eb)
10
10
 
11
- https://qiita.com/Nirma/items/3fc46e50383a2b83b496
11
+ [ ](https://qiita.com/Nirma/items/3fc46e50383a2b83b496)
12
12
 
13
13
 
14
14
 

2

2019/03/10 09:57

投稿

1901drama
1901drama

スコア20

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  SCNnodeやworldMapなどの受け渡しは実装出来たのですが、動画ファイルの受け渡しを実装出来ません。
16
16
 
17
- 送信時に正しくデータを指定出来ていないか、受信時に解答するクラスの指定を誤っている為だと思われるのですが、どなたか解決法がわかればご教示頂きたいです。
17
+ 送信時に正しくデータを指定出来ていないか、受信時にアンアーカイブするクラスの指定を誤っている為だと思われるのですが、どなたか解決法がわかればご教示頂きたいです。
18
18
 
19
19
 
20
20
 

1

2019/03/10 09:54

投稿

1901drama
1901drama

スコア20

test CHANGED
File without changes
test CHANGED
@@ -1,18 +1,20 @@
1
+ 初めまして!
2
+
1
- 初めまして、データの通信処理について相談させてください。
3
+ データの通信処理について質問させてください。
2
4
 
3
5
 
4
6
 
5
7
  以下の例を参考に、MultipeerとNSKeyedArchiver.archivedData/NSKeyedUnarchiver.unarchiveObjectを利用した端末間のデータ通信処理を実装しています。
6
8
 
7
- https://qiita.com/tomoyuki_HAYAKAWA/items/9c6fe8929633ba1476eb
9
+ https://qiita.com/tomoyuki_HAYAKAWA/items/9c6fe8929633ba1476eb
8
10
 
9
- https://qiita.com/Nirma/items/3fc46e50383a2b83b496
11
+ https://qiita.com/Nirma/items/3fc46e50383a2b83b496
10
12
 
11
13
 
12
14
 
13
15
  SCNnodeやworldMapなどの受け渡しは実装出来たのですが、動画ファイルの受け渡しを実装出来ません。
14
16
 
15
- 送信時に正しくデータを指定出来ていないか、受信時クラス指定を誤っている為だと思われるのですが、解決法がわかればご教示頂きたいです。
17
+ 送信時に正しくデータを指定出来ていないか、受信時に解答するクラス指定を誤っている為だと思われるのですが、どなたか解決法がわかればご教示頂きたいです。
16
18
 
17
19
 
18
20
 
@@ -59,3 +61,7 @@
59
61
  Replace 'ofClass' with 'ofClasses'
60
62
 
61
63
  ```
64
+
65
+
66
+
67
+ 何卒、宜しくお願い致します…!