質問編集履歴
2
訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,4 +27,9 @@
|
|
27
27
|
} //=> Missing return in a function expected to return 'UICollectionViewCell'
|
28
28
|
```
|
29
29
|
|
30
|
+
collectionViewの他のfunctionも同じように記述して下記のようなエラーが出てしまいます。
|
31
|
+
numberOfItemsInSection => Missing return in a function expected to return 'Int'
|
32
|
+
collectionViewLayout => Missing return in a function expected to return 'CGSize'
|
33
|
+
|
34
|
+
|
30
35
|
複数のtableViewではこのような書き方でエラーは出なかったのですが、collectionViewでは同じようにできないのでしょうか?
|
1
誤字訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
いつもお世話になります。
|
2
|
-
複数のcollectionView
|
2
|
+
複数のcollectionViewを画面上に置く場合の func collectionView cellForItemAt を記述したのですが、下記のreturnが無いよというエラーが消えなくて困っています。なにが原因でしょうか?
|
3
3
|
|
4
4
|
```swift
|
5
5
|
Missing return in a function expected to return 'UICollectionViewCell'
|