The Marionette CollectionView displays a Backbone collection object by rendering each objects through the specified childView View object.
Questions tagged [collectionview]
1294 questions
73
votes
6 answers
How can I add multiple collection views in a UIViewController in Swift?
I tried many days to realise this:
I want to add in my UIViewController two different CollectionView.
For example I want to put images in these collectionView
Each CollectionView use its own images.
Is this possible?
I will be very happy if…

Masterfego
- 2,648
- 1
- 26
- 32
68
votes
12 answers
Where do I get a thread-safe CollectionView?
When updating a collection of business objects on a background thread I get this error message:
This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.
Ok, that makes sense.…

Jonathan Allen
- 68,373
- 70
- 259
- 447
64
votes
3 answers
UIWindow endDisablingInterfaceAutorotationAnimated error appears in console when keyboard is dismissed interactively from collectionView in iOS9 only
I am getting this strange error in iOS 9 only:
[UIWindow endDisablingInterfaceAutorotationAnimated:] called on UITextEffectsWindow: ...without matching
-beginDisablingInterfaceAutorotation. Ignoring.
Anytime I dismiss the keyboard interactively by…

alionthego
- 8,508
- 9
- 52
- 125
64
votes
9 answers
iOS UICollectionView prototype cell size property ignored
I'm using a UICollectionView with two prototype cells. The prototype cells have different widths and contain different controls (image view and web view). I'm definitely returning the correct prototype cell for a given index (all the cells display…

minerat
- 1,011
- 1
- 7
- 12
53
votes
7 answers
SwiftUI | Using onDrag and onDrop to reorder Items within one single LazyGrid?
I was wondering if it is possible to use the View.onDrag and View.onDrop to add drag and drop reordering within one LazyGrid manually?
Though I was able to make every Item draggable using onDrag, I have no idea how to implement the dropping…

Kai Zheng
- 6,640
- 7
- 43
- 66
49
votes
7 answers
Is force cast really bad and should always avoid it?
I started to use swiftLint and noticed one of the best practices for Swift is to avoid force cast. However I used it a lot when handling tableView, collectionView for cells :
let cell = collectionView.dequeueReusableCellWithReuseIdentifier(cellID,…

user3574111
- 523
- 1
- 4
- 6
43
votes
9 answers
How do you set the duration for UICollectionView Animations?
I have a custom flow layout which is adjusting the attributes for cells when they are being inserted and deleted from the CollectionView with the following two functions, but I'm unable to figure out how you would adjust the default animation…

James Parker
- 2,095
- 3
- 27
- 48
30
votes
2 answers
Get filtered items from a CollectionView
I have a ListCollectionView which has had a filter applied to it. In order to get the filtered items from the list (e.g. to write to a file), is there a clean way of doing it.
My current solution is
var filteredItems = originalCollection.Where(i =>…

John Oxley
- 14,698
- 18
- 53
- 78
27
votes
6 answers
NSFetchedResultsContollerDelegate for CollectionView
I'd like to use the NSFetchedResultsControllerRelegate in a CollectionViewController.
Therefore I just changed the method for the TableViewController for the CollectionView.
(void)controller:(NSFetchedResultsController *)controller…

aquarius68
- 353
- 1
- 5
- 6
24
votes
4 answers
Swipe to delete on CollectionView
I'm trying to replicate the swipe to delete functionality of iOS. I know it's instantly available on a tableview, but the UI that I need to build benefits from a Collection View. Therefor I need a custom implementation where I would be using a swipe…
user2023106
23
votes
4 answers
How to insert Cell in UICollectionVIew Programmatically?
I have a UICollectionView and it works fine, but I want to add a few UICollectionViewCells items programmatically into the collection view.
So how can I achieve this?
To further clarify: when I say programmatically I mean inserting a cell during…

Muhammad Nasir
- 1,796
- 1
- 14
- 22
17
votes
2 answers
Using CollectionView in UIView with xib file
i'm doing with this, i want to use CollectionView, but i haven't seen prototype cell, and don't know how to use CollectionView in this case, can someone help me ?
I try to use like this way but it take alot of time and hard to manage than…

Thanh Hải
- 243
- 1
- 3
- 10
17
votes
6 answers
CRASH attempt to delete and reload the same index path
CollectionViewController.m line 439
__50-[CollectionViewController photoLibraryDidChange:]_block_invoke
Fatal Exception: NSInternalInconsistencyException
attempt to delete and reload the same index path ( {length = 2, path = 0 - 26007})
-…

Ted
- 22,696
- 11
- 95
- 109
17
votes
5 answers
Remove space between sections in collectionview
How to adjust the spacing between sections of collection view.

Bhanu Birani
- 1,286
- 1
- 13
- 22
16
votes
14 answers
Collection View Cells not appearing
I want to display as many collectionViewCells with buttons as there are strings in my array. but when I start the simulator there is just the background of the CollectionViewbut no cells shown. What could be the error?
Here is the code from my…

maidi
- 3,219
- 6
- 27
- 55