sdk-ameba-v4.0c_180328/tools/uart_adapter/app/iOS/uartadapter/Cell.m
2019-04-02 16:34:25 +08:00

27 lines
615 B
Objective-C
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Copyright (C) 2015 Apple Inc. All Rights Reserved.
See LICENSE.txt for this samples 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