user3766930
user3766930

Reputation: 5829

How can I completely remove the hide/done button from a keyboard in a swift app?

I have a following code:

textView.returnKeyType = UIReturnKeyType.Done

that makes my keyboard look like this:

enter image description here

but I would like to get rid of the done/return button and achieve this:

enter image description here

what's the best way of doing it in swift?

Upvotes: 3

Views: 3097

Answers (1)

Nathan Ansel
Nathan Ansel

Reputation: 386

You cannot achieve this by changing the return button type, instead you need to change the keyboard type. In order to change the keyboard type to match the one you posted that you would like to match, use the twitter keyboard type.

Swift 2

textView.keyboardType = .Twitter

Swift 3

textView.keyboardType = .twitter

Upvotes: 3

Related Questions