mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
31 lines
865 B
Objective-C
31 lines
865 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];
|
|
}
|
|
}
|
|
_selectedImage.hidden = TRUE;
|
|
_linphoneImage.hidden = TRUE;
|
|
return self;
|
|
}
|
|
|
|
@end
|