GMGridView icon indicating copy to clipboard operation
GMGridView copied to clipboard

How do I use initwithframe:reuseIdentifier?

Open zakdances opened this issue 12 years ago • 1 comments

Previously, I was using

if (cell == nil) {

  cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
          reuseIdentifier:CellIdentifier];

 }

But now that I'm using GMGrid, there doesn't seem to be an equivalent method. How do I create a cell with a particular identifier?

zakdances avatar Aug 03 '12 01:08 zakdances

A quick look at GMGridView.h pops out:

// Reusable cells
- (GMGridViewCell *)dequeueReusableCell;                              // Should be called in GMGridView:cellForItemAtIndex: to reuse a cell
- (GMGridViewCell *)dequeueReusableCellWithIdentifier:(NSString *)identifier;

exalted avatar Nov 12 '12 14:11 exalted