How can I change some keystroke on iOS 7 default keyboard? Like Slack

618 views Asked by At

I use an app called "Slack" somehow they managed to change the return key to be "#" and "@" like in the picture.

I really don't know whether they created a whole new keyboard view that look exactly the same as iOS default keyboard or

It has a way to custom the return button of the default keyboard.

image1 image2

Anyone got any idea how can they do this on iOS 7?

Slack has shared it source code for handle message like app here

Which I still cannot locate where is the functionality to add "@" and "#"

1

There are 1 answers

2
JAL On BEST ANSWER

You can achieve this by using the Twitter keyboard built in to the iOS SDK.

[textField setKeyboardType:UIKeyboardTypeTwitter];

If you're using Interface Builder, select your UITextField and go to the Attributes inspector -> Keyboard Type -> Twitter.

Keyboard Type