aboutsummaryrefslogtreecommitdiffstats
path: root/iphone/FixMyStreet/Classes/SubjectTableViewCell.m
diff options
context:
space:
mode:
authormatthew <matthew>2008-10-02 16:32:27 +0000
committermatthew <matthew>2008-10-02 16:32:27 +0000
commit1e276f5555ca52c43b62954327cc44f40b8b0f58 (patch)
treedf3b7807016ace0e1e0d3e781fba3cf287324a4d /iphone/FixMyStreet/Classes/SubjectTableViewCell.m
parent37f57cc8b8332ba5a19e39657d388d3cc7a5b656 (diff)
Initial revision
Diffstat (limited to 'iphone/FixMyStreet/Classes/SubjectTableViewCell.m')
-rw-r--r--iphone/FixMyStreet/Classes/SubjectTableViewCell.m43
1 files changed, 43 insertions, 0 deletions
diff --git a/iphone/FixMyStreet/Classes/SubjectTableViewCell.m b/iphone/FixMyStreet/Classes/SubjectTableViewCell.m
new file mode 100644
index 000000000..55b6f1b2f
--- /dev/null
+++ b/iphone/FixMyStreet/Classes/SubjectTableViewCell.m
@@ -0,0 +1,43 @@
+//
+// subjectTableViewCell.m
+// FixMyStreet
+//
+// Created by Matthew on 26/09/2008.
+// Copyright 2008 UK Citizens Online Democracy. All rights reserved.
+//
+
+#import "SubjectTableViewCell.h"
+
+@implementation SubjectTableViewCell
+
+@synthesize textField;
+
+- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
+ if (self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) {
+ textField = [[UITextField alloc] initWithFrame:CGRectZero];
+ textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
+ textField.font = [UIFont systemFontOfSize:20];
+ textField.placeholder = @"Summary";
+ textField.autocapitalizationType = UITextAutocapitalizationTypeSentences;
+ textField.clearButtonMode = UITextFieldViewModeWhileEditing;
+ textField.returnKeyType = UIReturnKeyDone;
+ [self addSubview:textField];
+ }
+ return self;
+}
+
+-(void)layoutSubviews {
+ textField.frame = CGRectInset(self.contentView.bounds, 20, 0);
+}
+
+- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
+ [super setSelected:selected animated:animated];
+ // Configure the view for the selected state
+}
+
+- (void)dealloc {
+ [textField release];
+ [super dealloc];
+}
+
+@end