Change UITextField and UITextView Cursor / Caret Color

前端 未结 16 2047
醉话见心
醉话见心 2020-12-07 09:33

I\'m wondering about changing the color of the cursor / caret in a UITextField (And UITextView if its the same answer) in iOS. I\'ve seen answers f

16条回答
  •  鱼传尺愫
    2020-12-07 09:43

    Swift 3:

      UITextField.appearance().tintColor = UIColor.black
      UITextView.appearance().tintColor = UIColor.black
    

提交回复
热议问题