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?

191 questions
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
  • 32,867
  • 38
  • 193
  • 353
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
  • 14
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
2 answers

UICollectionView Footers. Read the docs, still can't get one to show. Must be done programmatically

I'm trying to add supplemental footers into a UICollectionView. It seems like I'm hitting all the proper methods according to Apple's documentation but for some reason the: - (UICollectionReusableView *)collectionView:(UICollectionView…
0
votes
1 answer

Reload UICollectionViewCell from within cellForItemAtIndexPath

What is the best way to retry a failed image download in cellForItemAtIndexPath? I have a collection view that can show about 20 80x80 thumbnail images. I'm using SDWebImage to download and cache images in the cellForItemAtIndexPath method, but I've…
0
votes
1 answer

iOS6 UIStoryboard how to add a UICollectionReusableView to a UICollectionView object?

I'm running into a silly issue when working with a UICollectionView - I've added a "UICollectionReusableView" by dragging it to within the UICollectionView at the top position. I'm expecting that this is a kind of a header that would be visible…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1 2 3
12
13