mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
1a4b38e34b
* Use NS_DESIGNATE_INTIALIZER to ensure we're setting all the variables we need to be in OWSCall * no need to nil properties in dealloc on ARC * use declarative dictionaries for legability // FREEBIE use declarative dictionaries for clarity
53 lines
1.2 KiB
Objective-C
53 lines
1.2 KiB
Objective-C
// Created by Dylan Bourgeois on 20/11/14.
|
|
// Portions Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
#import "OWSCallCollectionViewCell.h"
|
|
#import <JSQMessagesViewController/UIView+JSQMessages.h>
|
|
|
|
@interface OWSCallCollectionViewCell ()
|
|
|
|
@property (weak, nonatomic) IBOutlet JSQMessagesLabel *cellLabel;
|
|
@property (weak, nonatomic) IBOutlet UIImageView *outgoingCallImageView;
|
|
@property (weak, nonatomic) IBOutlet UIImageView *incomingCallImageView;
|
|
|
|
@end
|
|
|
|
@implementation OWSCallCollectionViewCell
|
|
|
|
#pragma mark - Class Methods
|
|
|
|
+ (UINib *)nib
|
|
{
|
|
return [UINib nibWithNibName:NSStringFromClass([self class]) bundle:[NSBundle mainBundle]];
|
|
}
|
|
|
|
+ (NSString *)cellReuseIdentifier
|
|
{
|
|
return NSStringFromClass([self class]);
|
|
}
|
|
|
|
#pragma mark - Initializer
|
|
|
|
- (void)awakeFromNib
|
|
{
|
|
[super awakeFromNib];
|
|
|
|
[self setTranslatesAutoresizingMaskIntoConstraints:NO];
|
|
|
|
self.backgroundColor = [UIColor whiteColor];
|
|
|
|
self.cellLabel.textAlignment = NSTextAlignmentCenter;
|
|
self.cellLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:14.0f];
|
|
self.cellLabel.textColor = [UIColor lightGrayColor];
|
|
}
|
|
|
|
|
|
#pragma mark - Collection view cell
|
|
|
|
- (void)prepareForReuse
|
|
{
|
|
[super prepareForReuse];
|
|
self.cellLabel.text = nil;
|
|
}
|
|
|
|
@end
|