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"
12 @implementation TextViewCell
16 - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
17 if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
19 self.textView = [[[UITextView alloc] init] autorelease];
20 self.textView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleWidth |
21 UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleHeight;
23 self.contentView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleWidth |
24 UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleHeight;
26 self.contentView.autoresizesSubviews = YES;
27 self.textView.editable = NO;
28 [self.contentView addSubview:self.textView];
34 //- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
36 // [super setSelected:selected animated:animated];
38 // // Configure the view for the selected state
40 // self.textView.textColor = [UIColor whiteColor];
42 // self.textView.textColor = [UIColor blackColor];