linphone-iphone/Classes/LinphoneUI/UIChatNotifiedEventCell.m
2017-10-31 10:57:58 +01:00

49 lines
1.2 KiB
Objective-C

//
// UIChatNotifiedEventCell.m
// linphone
//
// Created by REIS Benjamin on 30/10/2017.
//
#import <Foundation/Foundation.h>
#import "UIChatNotifiedEventCell.h"
#import "LinphoneManager.h"
#import "PhoneMainView.h"
#import <AssetsLibrary/ALAsset.h>
#import <AssetsLibrary/ALAssetRepresentation.h>
@implementation UIChatNotifiedEventCell
#pragma mark - Lifecycle Functions
- (id)initWithIdentifier:(NSString *)identifier {
if ((self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]) != nil) {
if ([identifier isEqualToString:NSStringFromClass(self.class)]) {
NSArray *arrayOfViews =
[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self.class) owner:self options:nil];
// resize cell to match .nib size. It is needed when resized the cell to
// correctly adapt its height too
UIView *sub = ((UIView *)[arrayOfViews objectAtIndex:arrayOfViews.count - 1]);
[self setFrame:CGRectMake(0, 0, sub.frame.size.width, sub.frame.size.height)];
[self addSubview:sub];
}
}
return self;
}
- (void)dealloc {
_event = NULL;
}
#pragma mark -
- (void)setEvent:(LinphoneEventLog *)event {
}
- (void)layoutSubviews {
[super layoutSubviews];
}
@end