Questions tagged [uicollectionviewflowlayout]

209 questions
0
votes
1 answer

Dynamic height of UICollectionViewCell programmatically with constraints?

I have never seen a topic with so many different answers than I have for setting a dynamic height for a collection view cell. Some of the solutions have unimaginable amounts of code, which only further lends to the consensus that UICollectionView is…
0
votes
2 answers

App Crash while adding the UICollectionView programmatically

I am trying to add UICollectionView with custom UICollectionViewCell programmatically in my project. Here is my implementation to add the CollectionView - (void)setUpCollectionView{ UICollectionViewFlowLayout *layout=[[UICollectionViewFlowLayout…
0
votes
0 answers

UICollectionViewFlowLayout with centered cells

I'm trying to implement a horizontal aligned CollectionView with centered cells and I'm using a custom UICollectionViewFlowLayout. I found several solutions with UICollectionViewDelegateFlowLayout but the delegate is not called, if you use a custom…
netshark1000
  • 7,245
  • 9
  • 59
  • 116
-1
votes
0 answers

How to make like Apple Photos collectionview pinch zoom?

Apple photos can change columns with pin zoom smoothly,how it work? i have coustom UICollectionViewFlowLayout , use UIPinchGestureRecognizer, but not work well this is my custom layout - (void)prepareLayout { [super prepareLayout]; …
-1
votes
2 answers

Collectionview Card Layout

Here is a screenshot of what I want to achieve: I need this type of collection view layout for card cells (with leading and trailing edging displays). import UIKit class ViewController: UIViewController { @IBOutlet weak var colList :…
-1
votes
1 answer

how to get Multiple collection cell in one collection View without creating XIB

I have one collection view in which i have to add multiple cell with different UI without Creating XIB how can i create it
-1
votes
1 answer

Blank Custom Collection Cell in Programmatic UICollectionViewController

I am trying to implement a UICollectionViewController programatically (NOT using the storyboard, although my project does use a storyboard for other things). I am able to connect my data source and display the number of cells that correspond to the…
-1
votes
1 answer

UICollectionView resize on screen rotation

I'm struggling with resizing collection view. Currently I'm having a flow layout method that counts size: func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath:…
-1
votes
2 answers

Swift - How to adjust UICollectionViewCell's ratio for different IOS device sizes

I'm using a CollectionView as a menu bar at the bottom of my ViewController I've created a custom class and have made 5 evenly spaced cells which fills the entire CollectionView on an iPhone 8 with the following, which is the desired…
-1
votes
2 answers

UICollectionView Dynamic Cell Height as per the content | Pinterest Layouts

I am trying to do a layout as Pinterest uses for their image gallery. But the issue is that I'm returning the image height to the size of the cells and when the images have different heights, it leaves spaces in the cells. I have walked through…
-2
votes
1 answer

How can I implement this UICollectionView cell animation?

I've been wanting to implement this nice little UICollectionViewCell animation shown below that was on Dribble. Do you think it's possible? I looked around for any guides to get a head start on this but found nothing quite similar. I have the idea…
-2
votes
3 answers

How To Achieve the desired Design in uicollection view using decorator view

See the following boarder of the each items (Border Spacing) With collection view Header I am able to achieve the following out put but stuck at how to put separator inside the uicollection view. also the number of cell inside the row is…
-3
votes
1 answer

UICollectionView using UICollectionViewFlowLayout is centering and misaligning cells

I'm using a standard UICollectionViewFlowLayout but it seems to do some overwork as it is centering the cells of section with one item and if the section contains 2 or 3 items, they are not distributed to fit width How to get always the same…
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
-4
votes
3 answers

How to push a navigation view using collectionView didSelectItemAt?

I am writing a code for my school project. As a beginner would, I looked up on tutorials on youtube how to code. To summarize the hierarchy of my used objects: Main collectionView (first one loaded) for scrolling horizontally between views. List…
1 2 3
13
14