uicollectionview Questions
2
Solved
I Am using UICollectionViewCompositionalLayout to create dynamic width, fixed height, tag cell type of layout in some sections of my collectionview. When i add a new string to an array in my databa...
Barnabas asked 5/11, 2023 at 9:45
1
I have a view controller that displays a collection view with self-sizing cells. The collection view has one section that scrolls horizontally. It looks like this:
Problem
The collection view b...
Candlefish asked 29/4, 2020 at 10:3
4
Solved
I have a UICollectionView added to a UIView in an app I am working on. Displayed in the UICollectionView I have a set of images pulled from Core Data. The vertical scrolling works fine but the scro...
Cottonmouth asked 14/5, 2013 at 19:18
0
Sample app
The following is a UIKit app that displays a collection view with list layout and diffable data source (one section, one row).
class ViewController: UIViewController {
var collectionVie...
Featherweight asked 4/8, 2024 at 11:7
8
Solved
I have a CollectionView which displays images to the user. I download these in the background, and when the download is complete I call the following func to update the collectionViewCell and displ...
Maziemazlack asked 9/7, 2016 at 12:38
3
I want to add reactions like iMessage above the text like this:
Currently, I'm only able to display the menu and I'm unsure of how to add a custom view above. This is how mine looks:
How can I ad...
Procurance asked 27/1, 2021 at 17:57
2
My understanding is that UICollectionViewDataSourcePrefetching is built for UICollectionViewDataSource, whereas UICollectionViewDiffableDataSource doesn't seem to have any documentation around pref...
Vituline asked 24/2, 2021 at 6:16
14
Solved
I have UICollectionView Horizontal Image listing code. I want to add PageControl when scrolling images will shows, I added pagecontrol selector and IBOutlet but how can I integrate it between UICol...
License asked 5/12, 2016 at 13:24
13
Solved
What's happening
Currently I have an application that uses two UICollectionViews inside a UITableView. This way I create a Pulse News look like application. My problem with this is that sometimes ...
Pencel asked 13/11, 2012 at 12:42
2
I am using a sample code from Apple to play a video on a UICollectionViewCell background.
I'm using AVPlayerLooper, since it is a iteration of the same video.
My problem here is that when the vid...
Kidwell asked 31/10, 2017 at 1:24
3
Solved
I have a horizontal UICollectionView with several sections, each containing several cells as follows:
Section 0: one cell to cancel selection.
Section 1: recently selected items.
Section 2 and bey...
Willow asked 19/11, 2019 at 9:27
2
I'm writing an app in Storyboard/Swift (XCode 14.2). When I run the app on my iPhone (14 pro 16.3.1) or on an iPhone simulator (16.2) no error is given. But when I test my app in an iPad simulator ...
Amoebocyte asked 3/3, 2023 at 13:48
28
Solved
How do I set cell spacing in a section of UICollectionView? I know there is a property minimumInteritemSpacing I have set it to 5.0 still the spacing is not appearing 5.0. I have implemented the fl...
Delamare asked 21/6, 2013 at 6:55
6
Solved
I'm new to swift and building iOS Application from the scratch (using swift 4) and want to do something like below.
1. Implement Multiple cell selections in UICollectionView,
2. Pass selected cells...
Greek asked 11/10, 2018 at 10:13
2
Solved
I have a UICollectionViewCell drawn out in a xib and accompanied by swift class file. These two files are part of my app's UI framework target (called SomeUI).
In the view controller of my collect...
Utilize asked 5/8, 2014 at 12:35
9
Solved
I have a UICollectionView. The UICollectionView's datasource is a NSArray of students (from CoreData). I want the current student item be selected/highlighted.
How can I do this? I know there is a...
Hove asked 7/2, 2014 at 23:5
6
Solved
I have a UICollectionView that is the entire view but it lives inside "view" (it is not UICollectionViewController). Adding a cell to this collection view shows it in the following order in storybo...
Abydos asked 26/3, 2017 at 0:0
17
Solved
How to create grid of square items (for example like in iOS Photo Library) with SwiftUI?
I tried this approach but it doesn't work:
var body: some View {
List(cellModels) { _ in
Color.orange.f...
Belicia asked 5/6, 2019 at 18:43
5
Solved
There is a method to get a cell by indexPath (UICollectionView cellForItemAtIndexPath:). But I can"t find a method to get one of the supplementary views like a header or footer, after it has been c...
Flowerer asked 15/11, 2012 at 9:6
3
Solved
In apps such as Settings, when you tap on a cell which pushes a screen, then you swipe back from the left of the screen, you can see the deselection of the selected cell’s background color fading, ...
Willianwillie asked 27/5, 2014 at 16:19
1
I am using UICollectionViewDiffableDataSource to fill UICollectionView with data. My understanding is that DiffableDataSource compares items by using == and then if items are equal it compares hash...
Classicism asked 9/2, 2022 at 8:51
3
Solved
How can I resize the cell size of UICollectionView without reload methods?
Just want to call following method on some event. I do not want to reload UICollectionView or any of its section or row.
...
Sperrylite asked 2/7, 2016 at 7:42
3
Solved
Here is the error:
Thread 1: "Attempted to dequeue a cell using a registration that was created inside -collectionView:cellForItemAtIndexPath: or inside a UICollectionViewDiffableDataSource c...
Exuberate asked 25/6, 2021 at 22:8
7
Solved
I have a CollectionView that I am using to display my onboarding screen. Each cell takes the full width and height of the view and currently I have it working fine swiping between each cell (page)....
Ablation asked 26/9, 2016 at 1:15
4
Solved
I have a UICollectionView with a cell containing a single UIImageView. I'm setting the UIImageView frame.size to match the cell's frame.size and also explicitly asking the UIImageView to Scale with...
Operate asked 10/7, 2015 at 1:23
1 Next >
© 2022 - 2025 — McMap. All rights reserved.