GMGridView
GMGridView copied to clipboard
How do I use initwithframe:reuseIdentifier?
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?
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;