問題:
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