質問編集履歴

1

追記。

2016/12/06 00:27

投稿

cicle
cicle

スコア35

test CHANGED
File without changes
test CHANGED
@@ -199,3 +199,51 @@
199
199
 
200
200
 
201
201
  どうぞ、よろしくお願い致します。
202
+
203
+
204
+
205
+ **== 追記 ==**
206
+
207
+ UICollectionViewと同じサイズのCellを使用しています。
208
+
209
+ (今朝、考えてましたらvisibleCellsが0の理由が追記前の質問だとわかりにくくなってました)
210
+
211
+ ```ここに言語を入力
212
+
213
+ func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
214
+
215
+ return CGSize(width: collectionView.frame.size.width, height: collectionView.frame.size.height)
216
+
217
+ }
218
+
219
+ ```
220
+
221
+
222
+
223
+ また、機能としましては「完全に表示されているCell」の"J_BaseCell"のプロパティ"type"を取得して処理を切り分ける。というような物になっております。
224
+
225
+ ```ここに言語を入力
226
+
227
+ getPerfectVisibleCell()で取得出来たCellに対して
228
+
229
+
230
+
231
+ let type = cell.getType()
232
+
233
+
234
+
235
+ 以下、typeごとの処理
236
+
237
+
238
+
239
+
240
+
241
+ ```
242
+
243
+
244
+
245
+ ※UIPageViewControllerのような物をUICollectionViewで実装したい。
246
+
247
+ 表示するViewの順番が数パターンあるので、CollectionViewの方が切り分けが楽かな?と思いこちらを採用しました。
248
+
249
+ (あまりUIPageViewControllerが得意ではないので...)