Questions tagged [uicollectionviewlayout]

The UICollectionViewLayout class is an abstract base class that is used to generate layout information for a collection view.

The UICollectionViewLayout class is an abstract base class that you subclass and use to generate layout information for a collection view. The job of a layout object is to determine the placement of cells, supplementary views, and decoration views inside the collection view’s bounds and to report that information to the collection view when asked. The collection view then applies the provided layout information to the corresponding views so that they can be presented onscreen.

More: UICollectionViewLayout Class Reference

1496 questions
0
votes
1 answer

uicollectionview decoration broken frame?

I have a UICollectionView with custom layout and try to display a decoration view. The problem illustrated with some code: attributeDecorationTime.frame = CGRectMake(0.0f, 0.0f, …
0
votes
1 answer

Implement photo disperse transition similar to Photos on iPad

On the iPad, when you tap an album in Photos, the photos in the album "explode" out from the stack of photos and align neatly into a grid. That's a very cool transition and I want to try to replicate it, but I could not find any open source projects…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
0
votes
1 answer

Send request to server when UICollectionview scroll?

Problem: 800 pictures come from server in NSMutableArray so when open UICollectionView then 10 minutes wait for loading 800 pictures.. So I want to first 12 picture when i first time open UICollectionView then send request to server when i scroll…
0
votes
0 answers

UICollectionView does not respond or update - iOS8

I have a UICollectionView that needs to be updated, reloaded as I need. I have this implemented in other projects but specifically in this one it does not allow the UI to update, even though I can get the code to execute upon reloadData,…
0
votes
2 answers

UICollectionView with flow layout won't put multiple items on one line

I have a collectionView in which I am trying to create a grid style layout. I'm using a flowLayout and standard UICollectionViewCell's for now, but I can't seem to get the collectionView to put multiple items on the same line, as I believe the…
Kyle Rosenbluth
  • 1,672
  • 4
  • 22
  • 38
0
votes
0 answers

CollectionView nil

I'm trying to update a value for one of my cells. However, the first time that function, cellForItemAtIndexPath, is called, viewwithtag returns nil. The value still changes, though. /// Llena el contenido de las celdas de la vista func…
0
votes
2 answers

is it possible to change the CollectionViewFlowLayout to CollectionViewLayout in storyboard

is it possible to change the CollectionViewFlowLayout to CollectionViewLayout in storyboard,because i need to implement the water flow or Pinterest Layout,in examples RFQuiltLayout, BDDynamicGridViewController they written in collectionViewLayout…
Prabakaran
  • 258
  • 2
  • 14
0
votes
1 answer

Different Cell size in a collection view in ios

i already display the image as grid view using UICollectionView with equal size like follows Next step i want to display cell as different size but the images fit into the that cell like this this need to be work in the storyboard because other…
0
votes
1 answer

How can I resize a UICollectionViewCell along one axis without distorting its contents?

I am trying to resize a UICollectionViewCell along only one axis without distorting its contents. I have read answers for similar problems involving UICollectionViewLayoutAttributes layoutAttributesForItemAtIndexPath and…
Carl Smith
  • 1,236
  • 15
  • 18
0
votes
1 answer

different frame for each cell of UICollectionView

what I want to do is, I am using UICollectionView to show my stuff. What I want is, the stuff that I want to show is coming from server, It may be in single line or some may be multiple. I wanted to show the cell frame of UICollectionView…
Sagar
  • 1,286
  • 3
  • 19
  • 34
0
votes
1 answer

Detected a case where constraints ambiguously suggest a size of zero for a collection view cell's content view

Has anyone got this problem with CollectionView? Warning once only: Detected a case where constraints ambiguously suggest a size of zero for a collection view cell's content view. We're considering the collapse unintentional and using standard size…
0
votes
1 answer

How to add animation in UICollection View

I am not sure, whether Question heading is explanatory. I have the images here The first Image shows a UICollectionView. On the Click of any cell, it should turn into Image 2. i.e. a new popup will come up, and the Cell 3 and Cell 4 will move…
Jasmeet
  • 1,522
  • 2
  • 22
  • 41
0
votes
1 answer

MapView inside UICollectionViewCell not functioning

I'm working with the sticky header flow layout (https://github.com/jamztang/CSStickyHeaderFlowLayout) on my project, but am running into trouble with the mapview in the header. The collection view header is a my custom class HeaderMapViewCell that…
0
votes
1 answer

How to make uicollectionview as attached image

I would like to make UICollectionView as the following image. However, I got the following. I am using UICollectionView flow layout. I used the following code to defined each cell size. - (CGSize)collectionView:(UICollectionView *)collectionView…
user890207
  • 509
  • 1
  • 6
  • 14
0
votes
1 answer

How to rearrange collection view cell when device orientation changes

Collection view looks fine when in portrait mode. But when it landscape mode the cells do not rearrange .. they remain in the same place. I have added autolayout so that the collection view stretches to fill the screen and the collection view has…