public
Created

  • Download Gist
MonstersInc.m
Objective-C
1 2 3 4 5 6 7 8 9 10
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
for (int y=0; y<[selectedMonsters count];y++) {
if [[selectedMonsters objectAtIndex:y] isKindOfTemplate:[monsters objectAtIndexPath:indexPath]] {
cell.detailLabel.text = [monster quantity];
}
else {
cell.detailLabel.text = "";
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.