equal
deleted
inserted
replaced
34 textField.delegate = self; |
34 textField.delegate = self; |
35 textField.clearButtonMode = UITextFieldViewModeWhileEditing; |
35 textField.clearButtonMode = UITextFieldViewModeWhileEditing; |
36 textField.clearsOnBeginEditing = NO; |
36 textField.clearsOnBeginEditing = NO; |
37 textField.returnKeyType = UIReturnKeyDone; |
37 textField.returnKeyType = UIReturnKeyDone; |
38 textField.adjustsFontSizeToFitWidth = YES; |
38 textField.adjustsFontSizeToFitWidth = YES; |
|
39 textField.minimumFontSize = 9; |
39 textField.userInteractionEnabled = YES; |
40 textField.userInteractionEnabled = YES; |
40 textField.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]]; |
41 textField.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]]; |
41 [textField addTarget:self action:@selector(save:) forControlEvents:UIControlEventEditingDidEndOnExit]; |
42 [textField addTarget:self action:@selector(save:) forControlEvents:UIControlEventEditingDidEndOnExit]; |
42 |
43 |
43 [self.contentView addSubview:textField]; |
44 [self.contentView addSubview:textField]; |