linphone-iphone/Classes/LinphoneUI/UIChatCreateCell.m
Gautier Pelloux-Prayer 31ba4d0a51 chat: search view
2015-10-12 16:59:56 +02:00

29 lines
803 B
Objective-C

//
// UIChatCreateCellViewTableViewCell.m
// linphone
//
// Created by Gautier Pelloux-Prayer on 12/10/15.
//
//
#import "UIChatCreateCell.h"
@implementation UIChatCreateCell
- (id)initWithIdentifier:(NSString *)identifier {
self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
if (self != nil) {
NSArray *arrayOfViews =
[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self.class) owner:self options:nil];
if ([arrayOfViews count] >= 1) {
// resize cell to match .nib size. It is needed when resized the cell to
// correctly adapt its height too
UIView *sub = ((UIView *)[arrayOfViews objectAtIndex:0]);
[self setFrame:CGRectMake(0, 0, sub.frame.size.width, sub.frame.size.height)];
[self addSubview:sub];
}
}
return self;
}
@end