UITextField changes font while editing

前端 未结 4 1578
滥情空心
滥情空心 2021-01-05 05:31

I am suffering the same problem as here UITextField's custom font changes while in edit mode and could really do with a solution.

I have 4 UITextFields that I as

4条回答
  •  耶瑟儿~
    2021-01-05 06:03

    You can set the font again when editing, the font will be the same when editing.

    - (void)textFieldDidBeginEditing:(UITextField *)textField {
        textField.font = customizedFont; //The font you want to use no matter editing/no editing
    
    }
    

提交回复
热议问题