The Marionette CollectionView displays a Backbone collection object by rendering each objects through the specified childView View object.
Questions tagged [collectionview]
1294 questions
0
votes
1 answer
Downcast from '[UICollectionViewLayoutAttributes]?' to '[UICollectionViewLayoutAttributes]' only unwraps optionals
I'm trying to build a collection view with pagination (showing cells as previews) and found this tutorial. I'm getting the error from Xcode and guessing this must be due to an update to Xcode (since the tutorial seemed to have worked for a lot of…

rantanplan
- 243
- 3
- 17
0
votes
1 answer
CollectionView controller creation without storyboard
Hi all I am new to Swift and am currently stuck on the below problem.
When a row is selected on a table view controller it pushes a collection view controller but I am getting this error:
UICollectionView must be initialized with a non-nil layout…

Kanan Jarrus
- 607
- 1
- 12
- 26
0
votes
2 answers
Embedded UICollectionView in View Controller not getting called Swift
For some strange reason the collectionView isn't called. I put break points at numberOfItemsInSection and cellForItemAtIndexPath but they are never called. Here is my code:
class ChannelViewController: UIViewController, UISearchResultsUpdating,…

tylerD
- 53
- 10
0
votes
1 answer
Selecting an image inside of TableViewCell
I have a tableView, and inside of that tableView are 3 images.
I would like to be able to select an image and be directed to another VC where it displays the image that has been tapped.
For my images (downloaded from Parse) I have a uuid (unique…
user5899631
0
votes
1 answer
UICollectionView adding action in Header to imageview
Adding the tap gesture to the imageView present above the header and not getting inside the action
let headerTap = UITapGestureRecognizer(target: self, action: "headerClicked")
headerTap.delegate = self
headerTap.numberOfTapsRequired = 1
…

user3279089
- 11
- 2
0
votes
2 answers
WPF ICollectionView Filter Reset
I have a CollectionView derived from an ObservableCollection:
private static ObservableCollection _calculations;
CalculationViewModelsCollection = (CollectionView)CollectionViewSource.GetDefaultView(_calculations);
My problem…

Zoltán Barna
- 463
- 2
- 4
- 12
0
votes
1 answer
Reload single TableViewCell with Custom Cell that includes CollectionView
I have a ViewController that has tableView. That tableView populates Custom Cells. Every Custom Cell has a collectionView that displays images (imagine news feed structure when every news block has images).
Now, after editing anything in one news…

ekashking
- 387
- 6
- 19
0
votes
1 answer
CollectionViewCell Open a new view controller with previous cell title and image
I have looked all over this website for 3 hours now and i cannot find out how to do this without referencing to manually connecting all of my 106 collection view cells with segues to another ViewController.
I would like to be able to click on my…

Lee Sugden
- 63
- 8
0
votes
1 answer
UIImageView transparent black on a cell bug (Objective-C)
I have a UIImageView installed on my cell, it is transparent black, but when I scroll the CollectionView and I raise my UIImageView but there is always more to transprence.
See picture :
1 - I is not even scroll
2 - After a scroll
My code :
-…

victor bill
- 209
- 2
- 15
0
votes
1 answer
UICollectionview Scrolling while adding Items is super laggy
I have this very nice collectionview that loads pictures from my server. Now, if the pictures are loading slowly, the collectionview is actually scrollable, but if the pictures are loading fast, instead, the collectionview is basically frozen until…

overkill
- 103
- 2
- 8
0
votes
0 answers
Swift - how to handle long press gesture recognizer when going out of view?
For my app I have a collectionview with cells that can be up and downvoted. I use the long press gesture recognizer to account for users hold+dragging up and down to upvote or downvote.
A problem crops up however, when the user's finger slides over…

user3488148
- 59
- 1
- 8
0
votes
1 answer
Slow loading of images in a collection view, swift
I have a few (20 - 30) images stored the app and on loading them on to a collection view, they start off small as shown in the screen shot and on scrolling they become the normal size.
Any ideas on how to fix this? Quite confused on why!
Here is my…

Gugulethu
- 1,426
- 3
- 18
- 36
0
votes
2 answers
JSQMessagesCollectionView (Message Bubble size all identical..)
I am using JSQMessagesCollectionView to build an app which enables chat. It works really fine till now because I start to notice all the message bubbles have the width of the first one! If the message is longer than the 1st bubble, then text is…

Yanyan
- 92
- 9
0
votes
1 answer
Swift - CollectionView, how to find the first and last items in an IndexPath?
I wrote an upvote/downvote function for my collectionview cells.
I compare a cell's score variable to the cells above and below it.
I have a function containing the following code after the upvote input is received.
if cell != CVcellArray.first…

user3488148
- 59
- 1
- 8
0
votes
1 answer
Custom header "fatal error: unexpectedly found nil while unwrapping an Optional value"
Here is my override function for UICollectionUICollectionViewControllerView
override func collectionView(collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, atIndexPath indexPath: NSIndexPath) ->…

Hieu Nguyen
- 474
- 1
- 5
- 21