// // UIChatNotifiedEventCell.m // linphone // // Created by REIS Benjamin on 30/10/2017. // #import #import "UIChatNotifiedEventCell.h" #import "LinphoneManager.h" #import "PhoneMainView.h" #import #import @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