project_files/HedgewarsMobile/Classes/EditableCellView.m
changeset 5700 f0960a88ab0e
parent 4976 088d40d8aba2
child 6078 8c0cc07731e5
equal deleted inserted replaced
5699:1a9a6a7662aa 5700:f0960a88ab0e
    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];