Search code examples
iosuitextviewuitextviewdelegate

UITextView with magnifying-glass and no keyboard


When using a UITextView one usually gets a keyboard to edit the contents; and by touching it one also gets a magnifying glass to help bring the cursor in the desired position. Is it possible to get the magnifying glass to position the cursor but at the same time eliminate the keyboard?


Solution

  • Sure it's possible. Try this

    textView.inputView = [UIView new]