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

回答編集履歴

3

s

2018/07/04 13:46

投稿

_Kentarou
_Kentarou

スコア8490

answer CHANGED
@@ -1,6 +1,6 @@
1
1
  全て`else if`の形で書かれているので、パターンに当てはまらない時の`return`が無いというエラーですね。
2
2
 
3
- なので????のように最後に書いてください。
3
+ なので分岐の最後を`else`にするか????のように最後に書いてください。
4
4
  ```swift
5
5
  return UICollectionViewCell()
6
6
 

2

s

2018/07/04 13:46

投稿

_Kentarou
_Kentarou

スコア8490

answer CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  なので????のように最後に書いてください。
4
4
  ```swift
5
- return UICollectionView()
5
+ return UICollectionViewCell()
6
6
 
7
7
  ```

1

s

2018/07/04 13:45

投稿

_Kentarou
_Kentarou

スコア8490

answer CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  なので????のように最後に書いてください。
4
4
  ```swift
5
- return UICollectionViewCell()
5
+ return UICollectionView()
6
6
 
7
7
  ```