Cursor visibility issue in ios7

前端 未结 4 1987
野的像风
野的像风 2021-02-12 19:04

Simply creating a UITextField in ios7 SDK but when I enter some input, text is shown UItextField but cursor isn\'t.

4条回答
  •  长情又很酷
    2021-02-12 19:48

    The issue is related to the tintColor of the UITextField.

    The problem can be solved by setting the tintColor of the mainView holding the UITextField to default. Since this will affect all subviews in XCode 7. Anyway this solved my problem and working fine from ios 7 and above.

提交回复
热议问题