更改 UITextField 和 UITextView 光標/插入符號顏色 - Change UITextField and UITextView Cursor / Caret Color

問題:

I'm wondering about changing the color of the cursor / caret in a UITextField (And UITextView if its the same answer) in iOS.我想知道如何在 iOS 中更改UITextField光標/插入符號的顏色(如果答案相同,則爲UITextView )。 I've seen answers for OSX development, but nothing for iOS.我已經看到了 OSX 開發的答案,但沒有看到 iOS 的答案。

Is this even possible?這甚至可能嗎?


解決方案:

參考一: https://stackoom.com/question/mhFf
參考二: Change UITextField and UITextView Cursor / Caret Color
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章