回答編集履歴

4

修正

2017/01/08 04:19

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -29,3 +29,5 @@
29
29
 
30
30
 
31
31
  参考URL: [Apple API Reference](https://developer.apple.com/reference/avfoundation/avaudiosessioncategoryplayandrecord)
32
+
33
+ [Audio Session Categories](https://developer.apple.com/reference/avfoundation/avaudiosession/1669963-audio_session_categories)

3

修正

2017/01/08 04:19

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -25,3 +25,7 @@
25
25
  open func setCategory(_ category: String) throws
26
26
 
27
27
  ```
28
+
29
+
30
+
31
+ 参考URL: [Apple API Reference](https://developer.apple.com/reference/avfoundation/avaudiosessioncategoryplayandrecord)

2

修正

2017/01/08 04:17

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -13,3 +13,15 @@
13
13
  public let AVAudioSessionCategoryPlayAndRecord: String
14
14
 
15
15
  ```
16
+
17
+ `setCategory`メソッドの定義を見ると引数は文字列(`String`)なのでそこからも分かります。
18
+
19
+
20
+
21
+ ```swift
22
+
23
+ /* set session category */
24
+
25
+ open func setCategory(_ category: String) throws
26
+
27
+ ```

1

修正

2017/01/08 04:15

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- そこでは`AVAudioSessionCategoryPlayAndRecord`は`String`のプロパティとしてあります。
5
+ そこでは`AVAudioSessionCategoryPlayAndRecord`は`String`のプロパティとしてあります。
6
6
 
7
7
 
8
8