Fix bugs and improve folder filter UI
[pithos-ios] / Classes / TextViewCell.m
1 //
2 //  TextViewCell.m
3 //  OpenStack
4 //
5 //  Created by Mike Mayo on 10/11/10.
6 //  The OpenStack project is provided under the Apache 2.0 license.
7 //
8
9 #import "TextViewCell.h"
10
11 @implementation TextViewCell
12
13 @synthesize textView;
14
15 - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
16     if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
17                 
18                 self.textView = [[[UITextView alloc] init] autorelease];
19         self.textView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleWidth |
20         UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleHeight;
21         
22         self.contentView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleWidth |
23         UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleHeight;
24         
25         self.contentView.autoresizesSubviews = YES;
26         self.textView.editable = NO;
27                 [self.contentView addSubview:self.textView];    
28     }
29     return self;
30 }
31
32 //- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
33 //    
34 //    [super setSelected:selected animated:animated];
35 //    
36 //    // Configure the view for the selected state
37 //    if (selected) {
38 //        self.textView.textColor = [UIColor whiteColor];
39 //    } else {
40 //        self.textView.textColor = [UIColor blackColor];
41 //    }
42 //}
43
44 - (void)dealloc {
45     [textView release];
46     [super dealloc];
47 }
48
49 @end