mirror of
https://github.com/jialexd/sdk-ameba-v4.0c_180328.git
synced 2025-01-15 23:25:17 +00:00
28 lines
615 B
Mathematica
28 lines
615 B
Mathematica
|
/*
|
|||
|
Copyright (C) 2015 Apple Inc. All Rights Reserved.
|
|||
|
See LICENSE.txt for this sample’s licensing information
|
|||
|
|
|||
|
Abstract:
|
|||
|
Custom collection view cell for image and its label.
|
|||
|
*/
|
|||
|
|
|||
|
#import "Cell.h"
|
|||
|
#import "CustomCellBackground.h"
|
|||
|
|
|||
|
@implementation Cell
|
|||
|
|
|||
|
|
|||
|
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
|||
|
{
|
|||
|
self = [super initWithCoder:aDecoder];
|
|||
|
if (self)
|
|||
|
{
|
|||
|
// change to our custom selected background view
|
|||
|
CustomCellBackground *backgroundView = [[CustomCellBackground alloc] initWithFrame:CGRectZero];
|
|||
|
self.selectedBackgroundView = backgroundView;
|
|||
|
}
|
|||
|
return self;
|
|||
|
}
|
|||
|
|
|||
|
@end
|