5 // Created by Mike Mayo on 10/11/10.
6 // The OpenStack project is provided under the Apache 2.0 license.
9 #import "TextViewCell.h"
11 @implementation TextViewCell
15 - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
16 if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
18 self.textView = [[[UITextView alloc] init] autorelease];
19 self.textView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleWidth |
20 UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleHeight;
22 self.contentView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleWidth |
23 UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleHeight;
25 self.contentView.autoresizesSubviews = YES;
26 self.textView.editable = NO;
27 [self.contentView addSubview:self.textView];
32 //- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
34 // [super setSelected:selected animated:animated];
36 // // Configure the view for the selected state
38 // self.textView.textColor = [UIColor whiteColor];
40 // self.textView.textColor = [UIColor blackColor];