How do I use initwithframe:reuseIdentifier? #139

Open
zakdances opened this Issue Aug 3, 2012 · 1 comment

Comments

Projects
None yet
2 participants

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?

exalted commented Nov 12, 2012

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment