Questions tagged [uicollectionreusableview]

The UICollectionReusableView class defines the behavior for all cells and supplementary views presented by a collection view.Available in iOS 6.0 and later. It should be tag only issues related with [tag:uicollectionreusableview].

UICollectionReusableView : Reusable views are so named because the collection view places them on a reuse queue rather than deleting them when they are scrolled out of the visible bounds. Such a view can then be retrieved and repurposed for a different set of content.This is declared in Apple's UIKit framework and available in iOS 6.0 and later

This class is intended to be subclassed. Most methods defined by this class have minimal or no implementations. You are not required to override any of the methods but can do so in cases where you want to respond to changes in the view’s usage or layout.

Source: UICollectionReusableView Class Reference

Related tags:

Related Stack Overflow questions:

  1. Removing empty space, if the section header is hidden in the UICollectionView

  2. How to detect scrolling to a new section in a UICollectionView?

183 questions
0
votes
0 answers

iOS 8 swift change parent content

i am new to iOS, so i am confronted with this problem: I wrote an UICollectionView in an UIViewController (parent) with an UICollectionResuableView as a header. class ParentViewController: UIViewController, SideBarDelegate { @IBOutlet weak var…
0
votes
1 answer

How to keep section header at the top even when we scroll: UICollectionView

I found this tutorial how to make section for collection view. I want to achieve the same effect like in table view when we see section every time on the top even if we scroll table.
Matrosov Alexander
  • 20,713
  • 42
  • 130
  • 259
0
votes
2 answers

UICollectionView Footer not showing

I am trying show footer on collection view. In my story board i set accessory as footer in UICollectionView and i took collection reusable view. [self.cv registerClass:[ItemFooterView class]…
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

How to change button borderColor in UICollectionReusableView when cell alloced

I have a UICollectionReusableView with buttons, when user taps on buttons I would like to change backgroundColor and borderColor. BackgroundColor changed but borderColor did not change. Code: @implementation…
Iraklii
  • 1,255
  • 13
  • 28
0
votes
1 answer

Java JPanel Reusable view

I have created a set of buttons that I want to be at the top of every page of my application. Rather than having to recreate the setup in every class, is it possible to create it once and include it in every class, similar to a reusable view in…
user3932611
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…
0
votes
3 answers

Crash when loading UICollectionView in, why?

There is no error log just this what I see. I have a dynamic prototype UICollectionViewCell, and loading in here: override func collectionView(collectionView: UICollectionView!, cellForItemAtIndexPath indexPath: NSIndexPath!) ->…
János
  • 27,206
  • 24
  • 130
  • 270
0
votes
4 answers

Multiple UICOLLECTION View in a single view controller in iPad

I want to put more than one uicollectionview in one view controller i have successfully put it in storyboard as well as i have code that in .m file like below. -(UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath: …
0
votes
1 answer

UICollectionViewReusableView Error: Selecting one header sometimes triggers the other

UICollectionViewReusableView Error: Selecting one header sometimes triggers the other header UICollectionView has 2 sections. Each has a header with a button that changes BOOL state of either textDeleteActive or imageDeleteActive, then reloads a…
0
votes
2 answers

Error using dequeueReusableCellWithReuseIdentifer

I have a collection view in a storyboard with 4 collection view cell prototypes with the following identifiers: "Cell", "NoAlbumSelectedCell", "NoPhotosCell" and "NoVideosCell". This is the code I'm using to load the cells: - (UICollectionViewCell…
0
votes
1 answer

viewForSupplementaryElementOfKind not working because of empty array

Sometimes (it does not occur everytime eventhough the data does not change), the headers/ footers in my uiCollectionView cannot be instantiated and the app crashes because I get the following error : Terminating app due to uncaught exception…
Stoli
  • 69
  • 2
  • 13
0
votes
1 answer

Can't segue from UICollectionReusableView

I have UICollectionView and Header.I have textfield and image.I did try push segue working fine.But I need to call segue! Any help will be appreciate Header.h @interface HeaderRV : UICollectionReusableView @property (weak, nonatomic) IBOutlet…
royemi
  • 83
  • 1
  • 9
0
votes
0 answers

Stack to Grid UIcollectionView with dynamically changing number of sections

I am using two subclasses of UICollectionViewController, StackViewController and GridViewController. I am using a stack type gallery at first and then the transition happens when pinching any cell. In the stack I have 5 albums so I passed…
0
votes
1 answer

How to add header to each column in Collectionview

I have created a collectionview that has different data in each column. But to seperate them I need to add header . I can add only one header. My code for this is: - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView…
1 2 3
12
13