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
AsyncDisplayKit calculateLayoutThatFits() function works in 1 project, not in another
I'm doing this asyncDisplayKit tutorial for a collection view of images.
http://www.tekramer.com/improving-uicollectionview-uitableview-scrolling-performance-with-asyncdisplaykit/
I can run the finished project and everything works fine. I copied…

Wayne Filkins
- 494
- 6
- 20
0
votes
1 answer
about collection view, the corner cell doesn't keep the backgroundColor even though i change it
I'm making a collection view that has 6 * 7 cells and even though I wrote code such that I could change each cells background colour after declaring the UICollectionView; the cell background colour stays white. Other cells are not returning back to…

ucb
- 57
- 7
0
votes
1 answer
Scrolling vertically and horizontally in Collection View - embedded flow layouts vs custom layout
Problem:
I want to have a grid which scrolls vertically and horizontaly and is updated via CoreData's NSFetchedResultsController
Solution 1: Nested Collection Views in Flow Layout
First collection view is setup with a flow layout and vertical…

thesundayscientist
- 191
- 1
- 5
0
votes
1 answer
Using image picker to load images to two collection view cells
I am currently building an application with the goal that the user can upload an image to a desired Collection View Cell by tapping on the button within a cell. So far I have been able to pick an image, but it will never go to the designated cell.…

Robert Watson
- 11
- 4
0
votes
1 answer
Where should collectionView.reloadData() be called?
I was trying to make a wallpaper app and my code was working all fine when I had the entire implementation in the ViewController file. And then I shifted some of the code to another class. Here is the code.
ViewController.swift
override func…

209135
- 517
- 5
- 15
0
votes
1 answer
iOS-Swift-The location of collectionView header
I want to add the header in the collectionView but I have no idea how to delete the blank space between navigation bar and cell. Does any one give me some advice? Thanks.
The ViewController is below.
class CelebrityVC: UIViewController,…

kikily liu
- 37
- 1
- 12
0
votes
1 answer
How do I append data from a child item in Firebase database?
How do I append data from a child item in Firebase database? Below is my code.
import UIKit
import Firebase
import FirebaseDatabase
class MedalViewController: UICollectionViewController {
var imagesArray = [String]()
var identities =…

Ler Ws
- 317
- 5
- 17
0
votes
1 answer
Using 2 or more custom cellview in a collectionview
I'd like to recreate this app's view: https://i.stack.imgur.com/3CEqd.jpg
As you can see, the top part (store image and store name) is scrolled along with the products. The products (square images) looks like collection view cells.
Is the store…

Mapy Sebastian
- 3
- 3
0
votes
1 answer
how to fix this thread 1 exc_bad_instruction (code=exc_i386_invop subcode=0x0)?
When i run my app this exception occurs in number of item in section on return
here is my code :
import UIKit
import Alamofire
import SwiftyJSON
class DetailPage: UIViewController,UICollectionViewDataSource,UICollectionViewDelegate {
@IBOutlet…

ismailtsn92
- 21
- 1
- 4
0
votes
1 answer
Images arent shown in my collectionviewcells. iOS(swift)
I got an array with all the images i got from the camera. They are saved in my coreData. If a user takes a new photo, the photo will be saved in the core data and then i replace the normal array data with the coreData images. So if i go back to the…

Paul Heinemeyer
- 217
- 1
- 2
- 18
0
votes
2 answers
How to display one scrollable row in UICollectionViewController
I would like to show just one row in my collectionView. This one should be scrollable but the Simulator always includes a line break and my view is not scrollable at all.
This is my configuration in my storyboard:
But somehow this is the…

Burkart
- 103
- 10
0
votes
1 answer
Center the cell of a collectionView everytime the scrollview ends
I have a collectionView and I have an extension for its scrollview that helps me to get my cell 20pixels(the minimum space from the next cell) right of the screen like this:
now I want to change my extension to center it to the container like…

mike vorisis
- 2,786
- 6
- 40
- 74
0
votes
1 answer
How to select cell image in CollectionView then segue to ViewController
I have looked up many examples and tried to incorporate but have been unsuccessful. In my CollectionView (That has been placed in a ViewController), I'd like to select a cell and push the cell image to another ViewController. The references to…

Ojay
- 61
- 12
0
votes
0 answers
Swift UICollectionView FlowLayout with PhotoFramework assets
I have a UICollectionViewController that implemented with PHCachingImageManager that caches all the photos in the Camera Roll.
This works correctly with normal collection view layout, even with around 2000 photos.
However if I implement…

sunfffd
- 141
- 6
0
votes
2 answers
Long press to slide show images
I have a CollectionView, the cell in CollectionView has size equal to the screen (CollectionView has paging enable mode).
I want to press long on the screen, then the CollectionView will scroll to the next cell.
For example:
I need 1 second to make…

Twitter khuong291
- 11,328
- 15
- 80
- 116