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

UICollectionViewCell ignores specified size but respects origin

I have a collection view with a custom layout. iOS 8 is working fine, but in iOS 7 the cells are ignoring the width/height they're assigned by the layout and just keep the size they got from the xib. My layout is setting layout attributes with the…
mrgrieves
  • 567
  • 5
  • 19
0
votes
0 answers

How to hide the line between items in UICollectionView

I'm writing my calendar using UICollectionView. i don't know why this line come out this is my code for create UICollectionView #import "MonthTableView.h" #import "MonthTableCollectionViewCell.h" @implementation MonthTableView static NSString…
0
votes
1 answer

Is it a way to fill up collectionView lines from the beginning of the line and leave space in the end?

Instead of this alignment: x-x-x x-x-x I need this one: xxx-- xxx-- Is it possible with UICollectionViewController?
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
1 answer

How to call a method on collection view all cells?

On long press gesture on a collectionview cell I want to do some animation on all collectionview cells. How to achieve that? One way is to reload the collectionview. I am just curious is there another way to achieve that?
0
votes
2 answers

Collapsing UICollectionView

I'm having a fight with UICollectionView to adopt it to my needs. I'm trying to build a collapsing tag cloud. All elements can dynamically change size based on text inside. When collection is displayed, I would like to display only first row and…
0
votes
0 answers

Missing UINavigatinBar items with collection view child view controller

I've subclassed a UINavigationController by adding a UICollectionViewController as a child view controller when I init the subclass: -(id)init{ self = [super init]; if(self){ UICollectionViewController *collectionViewController =…
0
votes
1 answer

UICollectionView working on iOS8, but not on iOS7

I'm facing a strange bug on a UICollectionView when compiling for iOS7 and it's working good on iOS8. I have a UICollectionView inside an UICollectionViewCell, and when I select that UICollectionViewCell I'm increasing the size of that cell so the…
0
votes
1 answer

Pinning a UICollectionViewCell to a specific path

I was wondering if it is possible at all to pin a specific UICollectionViewCell to a specific location in the collection view. I have a use case for my app where there will always be at least 8 cells, and cell 7 has specific information that needs…
0
votes
1 answer

UICollectionViewFlowLayout adding extra space before first section header

Can anyone explain why UICollectionViewFlowLayout is adding extra space before the first section header in the following? The yellow border is the UICollectionView frame. The blue borders are the UICollectionReusableView section header frames: The…
bcattle
  • 12,115
  • 6
  • 62
  • 82
0
votes
1 answer

Why the UICollectionViewFlowLayout influnences where the new item was created?

i foundthe UICollectionViewFlowLayout influnences where the new item was created but i dont't know why It's my first time to use UICollectionView,and something i can't firgue out happened. Here are my code,and it's expected to show a row of 10…
Wythe
  • 149
  • 3
  • 12
0
votes
1 answer

UICollectionViewFlowLayout performance for Text Grid

I have an iOS 7 app using Storyboards that has the following structure: UITabBarController->UINavgiationController->UICollectionViewController I use a custom subclass of UICollectionViewFlowLayout to layout the grid. Each cell contains a single…
0
votes
0 answers

how to customize UICollectionView Layout at runtime?

I made my collection view stacked layout based this tutorial. http://skeuo.com/uicollectionview-custom-layout-tutorial Now i want to implement, when i tap a stack and have it expand out into a more detailed view for that album ( each image should…
nagarajan
  • 474
  • 3
  • 21
0
votes
1 answer

NSInternalInconsistencyException - "request for layout attributes for decoration view of kind MSCollectionElementKindCurrentTimeHorizontalGridline

The application I work on is displaying a CollectionView in form of a calendar. To simplify that we used the MSCollectionViewCalendarLayout from github. Now it comes with multiple additional decoration views like a red line, which represents the…
TMob
  • 1,278
  • 1
  • 13
  • 33
0
votes
1 answer

uicollectionview crashing rotating iPad fast

I usually don't ask for help but this time I really need it. I have an UICollectionViewinto an UIViewController. I have tried using default UICollectionViewFlowLayout or subclassing it trying to solve this annoying problem. When I started to rotate…
0
votes
2 answers

Is it possible to change some specified section headerView height in uicollectionview?

In my app, this is a collectionView in my main view controller, the items are many kinds of images, one kind is a section. I want to add a label to per section header, so users can input or edit their throughs about some kind of images. Because of…