Litle Dev
Litle Dev

Reputation: 493

How to make visible Cursor on TextField when keyboard not visible in iOS

The text field cursor is only visible after calling textField.becomeFirstResponder() and is invisible after textField.resignFirstResponder(). But I want to make visible the cursor after textFieldDidEndEditing or before textFieldShouldBeginEditing.

Then what can I do?

Upvotes: 1

Views: 2118

Answers (1)

Immanuel
Immanuel

Reputation: 70

I don't think UITextField can display a cursor while it isn't the first responder. Maybe you can try making a custom UITextField subclass?

Upvotes: 1

Related Questions