equal
deleted
inserted
replaced
29 if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) { |
29 if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) { |
30 delegate = nil; |
30 delegate = nil; |
31 |
31 |
32 textField = [[UITextField alloc] initWithFrame:CGRectZero]; |
32 textField = [[UITextField alloc] initWithFrame:CGRectZero]; |
33 textField.backgroundColor = [UIColor clearColor]; |
33 textField.backgroundColor = [UIColor clearColor]; |
|
34 textField.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]]; |
34 textField.delegate = self; |
35 textField.delegate = self; |
35 textField.clearButtonMode = UITextFieldViewModeWhileEditing; |
36 textField.clearButtonMode = UITextFieldViewModeWhileEditing; |
36 textField.clearsOnBeginEditing = NO; |
37 textField.clearsOnBeginEditing = NO; |
37 textField.returnKeyType = UIReturnKeyDone; |
38 textField.returnKeyType = UIReturnKeyDone; |
38 textField.adjustsFontSizeToFitWidth = YES; |
39 textField.adjustsFontSizeToFitWidth = YES; |
74 titleLabel.frame = CGRectMake(boundsX+offset+10, 10, 100, [UIFont labelFontSize] + 4); |
75 titleLabel.frame = CGRectMake(boundsX+offset+10, 10, 100, [UIFont labelFontSize] + 4); |
75 offset += 100; |
76 offset += 100; |
76 skew +=2; |
77 skew +=2; |
77 } |
78 } |
78 |
79 |
79 // sometimes the bold property gets lost |
|
80 textField.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]]; |
|
81 textField.frame = CGRectMake(boundsX+offset+10, skew+10, 300, [UIFont labelFontSize] + 4); |
80 textField.frame = CGRectMake(boundsX+offset+10, skew+10, 300, [UIFont labelFontSize] + 4); |
82 } |
81 } |
83 |
82 |
84 -(void) setSelected:(BOOL)selected animated:(BOOL)animated { |
83 -(void) setSelected:(BOOL)selected animated:(BOOL)animated { |
85 [super setSelected:selected animated:animated]; |
84 [super setSelected:selected animated:animated]; |