uicollectionviewdelegate Questions

3

Solved

None of my UICollectionViewDelegateFlowLayout methods are called. Can somebody help me find a solution? In my ViewDidLoad method, I have set delegate and datasource for collection view as self.col...
Clink asked 29/1, 2017 at 11:23

6

Solved

I'm using UICollectionView in my swift class, it's placed on my UIViewController. I connected the collectionView to the outlet in my code, I set up delegate and datasource and I see the outcome in ...

3

Solved

insetForSectionAtIndex (on DelegateFlowLayout) enables one to set insets for all cells within a section sectionInset (on FlowLayout) enables one to set insets that applies to all sections. Howev...

6

Solved

I have a UICollectionView that I have created programmatically. I would like for the collection view to behave in the following way: 1. User touches cell 2. Cell background color changes 3. User r...

1

Solved

I have ViewController called myVC with UITablewView - myTable. What I want is to add some UIView as myTable's headerView from code. So inside viewDidLoad() method of myVC I added this code let t...
Llywellyn asked 4/6, 2017 at 15:1

2

Solved

Presets, i have collectionViewFlowLayout subclass with - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds { return YES; } - (NSArray<UICollectionViewLayoutAttributes *> *)l...

4

At the moment I'm trying to create an UICollectionView, that should display a simple excel-like-spreadsheet, with rows and columns. This should be an easy task with UICollectionViews, I believed. A...

1

Solved

How can I show footer view only for one section? As I found out, I can't pass nil to hide footer views in other sections, as it produces crash. override func collectionView(collectionView: UICol...
Deflate asked 31/12, 2014 at 17:51

1

I have a UITableview. One of the UITableViewCell's is a UICollectionview with instance name "amenityView". The UICollectionViewDelegate and the UICollectionViewDataSource are set in the storyboard ...

1

Solved

I'm implementing a custom flow layout. It has 2 main methods for overriding to determine placement of cells: layoutAttributesForElementsInRect and layoutAttributesForItemAtIndexPath. In my code, ...
1

© 2022 - 2024 — McMap. All rights reserved.