Don't show a number for a count of 0 or 1.
This commit is contained in:
parent
d141fcddcd
commit
c7f86950f7
@ -139,7 +139,7 @@ const static CGFloat cellOffset = 40;
|
||||
imageLayer.contents = item.image;
|
||||
|
||||
CATextLayer *textLayer = [layer.sublayers objectAtIndex:1];
|
||||
if (item.count == 0)
|
||||
if (item.count <= 1) // for 1 and 0, show no number.
|
||||
textLayer.string = @"";
|
||||
else
|
||||
textLayer.string = [NSString stringWithFormat:@"%d", item.count];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user