Reputation: 5829
I have a following code:
textView.returnKeyType = UIReturnKeyType.Done
that makes my keyboard look like this:
but I would like to get rid of the done/return button and achieve this:
what's the best way of doing it in swift
?
Upvotes: 3
Views: 3097
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