iosswiftuitextview

blinking cursor when view controller appears


How to blink the cursor of a textview when the viewController appears?


Solution

  • What you want is:

    textView.becomeFirstResponder()
    

    in viewDidAppear.

    In Objective-C, that would be [textView becomeFirstResponder].