The Marionette CollectionView displays a Backbone collection object by rendering each objects through the specified childView View object.
Questions tagged [collectionview]
1294 questions
-1
votes
1 answer
Displaying views onto specific Collection View Cells?
I am trying to display pre-coded Page/View cells onto their respective cells in my collection view controller.
I've created all the pages without the use of storyboards.
I've created 3 cells but now I am trying to figure out how to put each view…

syds
- 322
- 3
- 12
-1
votes
1 answer
Move CollectionViewCell to another section
I have a UIViewController with a collectionView inside it. The layout may seem confusing but I am making use of horizontal scrolling UICollectionViewCells, presented in 3 sections.
The main collection view is made up of 3 sections. I access 3…

Dee
- 3
- 4
-1
votes
1 answer
Collectionviewcell images not load before scroll
Hello o created UICollectionView without storyboard and i used RxSwift for data binding.
I showing images on cells but they're not showing before scroll.
func first(_ image : String) {
self.addSubview(firstView)
…

Arif Dogan
- 35
- 1
- 8
-1
votes
1 answer
JSON Decoder error when decoding in CollectionView
I am taking an array of urls and decoding them within a Collection View. I have completed this successfully before but am receiving an error this time around.
I am receiving the…

JSharpp
- 459
- 1
- 9
- 21
-1
votes
1 answer
A transparent status bar still affects the collectionview behind
In the app I am doing, I have a fullscreen collection view with paging and I want the status bar to be displayed on top of the collection view (the status bar background being transparent so that the battery level and other texts are drawn on top of…

Sarah
- 1
- 1
-1
votes
1 answer
How to remove bottom border line with transparent background in my UICollectionView cell?
I tried to remove CollectionView Cell bottom border but no luck.
As attached is my sample code:-
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
UICollectionViewCell…

AD Tee
- 345
- 4
- 21
-1
votes
1 answer
Swift: How to reuse a ViewController properly
I got a HomeController of type UICollectionViewController which handles some PictureCells (contains a picture and a label).
Now I am sending one PictureCell to another ViewController to edit the label. This all works perfectly. I could send it back…

Noodledew
- 509
- 4
- 19
-1
votes
2 answers
How get ID selected record in UICollectionView
I have this code:
@IBOutlet weak var collectionView1: UICollectionView!
@IBOutlet weak var collectionView2: UICollectionView!
@IBAction func TipDetailBtnPressed(_ sender: Any) {
showSubViewInContainerView(view: "TipDetailsView",…

triff
- 157
- 3
- 12
-1
votes
1 answer
Design UICollectionViewCell based on even and odd index of the cell in Swift iOS
I have been stuck on this problem for weeks. I am trying to design collectionview where an even cell has label on left side and odd cell has label on right side. Initially the design is ok and code runs fine but when user starts scrolling the…

Sujal Shrestha
- 1
- 2
-1
votes
2 answers
didSet property value only appears in print()
INITIAL GOAL:
Have a view with a list of cells positioned vertically displaying some information. As soon as the user clicks on a cell to show a new view with more information.
THE ROAD SO FAR (curry on my wayward son!):
I created 2 view…

christostsang
- 1,701
- 3
- 27
- 46
-1
votes
2 answers
How to bind Switch state to an object in Swift?
In my app I have a switch and I want it to be an indicator for saving images. For now I have just a button that saves all the images.
It just makes more sense with an example
What I've tried:
func saveTapped() {
let cell =…

Max Kraev
- 740
- 12
- 31
-1
votes
1 answer
Why spacing is not equal in collectionView?
The collectionView shows cells without any problem except the spacing, some spacing are not equal to others, they are a little bit bigger than others. Even I set margin = 0, some spacing still comes out.
Here is the code:
let margin = 1
let cellSize…

jdleung
- 1,088
- 2
- 10
- 26
-1
votes
2 answers
unable to hide button after completing moving in collectionView
i am scrolling at left and right side in collectionView by click button horizontally, it works well, but i do not know how to hide button when is no more item in a side of collectionView. the previewButton will hide when no more item in left side…

Quiet Islet
- 536
- 1
- 8
- 28
-1
votes
1 answer
CollectionView infinite scroll in Swift with Json parse
I wrote the code for collectionView infinite scroll with json parse. Next want to view 20 data each time. After print 20data i will show footer.
Now it is going to view all data in a time. Json parse is ok, also footer view is ok. But the problem is…
user8397599
-1
votes
1 answer
Set section Header at index path CollectionView
I want to set a section header (an image as a section header) at a specific index path in my collectionView (after a certain number of cells).
Attempt to solve issue - So far when I try set the number of sections to 2 or more, it just duplicates…

Nolan Ranolin
- 409
- 3
- 16