As you can see in the first picture which i uploaded below.i have 3 segments.In the first segment collection view must be seems like that.However,when i click other segments it must disappear.Collection view must be between navigation view and contents view.Also, i uploaded another picture which is my storyboard.I'm waiting for your help. Thank you!
Asked
Active
Viewed 48 times
1
-
What the issue ? what you need ?? – Sh_Khan Sep 07 '18 at 17:34
-
When the first segment selected Collection view needs to appear as in the first picture(between navigation view and Accounts container) – Burak Kelleroglu Sep 07 '18 at 18:11
-
When i start the project, it doesn't appear. – Burak Kelleroglu Sep 07 '18 at 18:21
-
Do you implement sizeForItem ?? – Sh_Khan Sep 07 '18 at 18:22
-
Nope i just implemented numberOfItemsInSection and cellForItemAt – Burak Kelleroglu Sep 07 '18 at 18:27
2 Answers
0
You need to implement
func collectionView(_ collectionView: UICollectionView,
layout collectionViewLayout: UICollectionViewLayout,
sizeForItemAt indexPath: IndexPath) -> CGSize
return CGSize(width:<#width#>,height:<#height#>)
}
Sh_Khan
- 86,695
- 6
- 38
- 57
-
Unfortunately,it doesn't work if you want i can upload my source on github – Burak Kelleroglu Sep 07 '18 at 18:40
0
this question is already answered in another place on stackoverflow
i think that is all you need to know
Dante
- 62
- 11