clean up ASCollectionView example project (#2384)

This commit is contained in:
Hannah Troisi
2016-10-20 17:10:20 -07:00
committed by GitHub
parent 1fbcefdbd3
commit 0dd170dde4
4 changed files with 25 additions and 11 deletions

View File

@@ -22,10 +22,12 @@
- (instancetype)initWithString:(NSString *)string
{
self = [super init];
if (self != nil) {
self.text = string;
[self updateBackgroundColor];
}
return self;
}
@@ -43,12 +45,14 @@
- (void)setSelected:(BOOL)selected
{
[super setSelected:selected];
[self updateBackgroundColor];
}
- (void)setHighlighted:(BOOL)highlighted
{
[super setHighlighted:highlighted];
[self updateBackgroundColor];
}