tasty-imitation-keyboard
tasty-imitation-keyboard copied to clipboard
UIReturnKeyType
Hi,
tank you for your awesome work,
you can use UIReturnKeyType to change return key label for given situation, for example : return, Search, Done, Send ...
like original keyboard most of custom keyboards have this feature.
UIRetunKeyType is :
import UIKit enum UIReturnKeyType : Int { case Default case Go case Google case Join case Next case Route case Search case Send case Yahoo case Done case EmergencyCall }
optional var returnKeyType: UIReturnKeyType { get set }
and link is : https://developer.apple.com/LIBRARY/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIReturnKeyType
Also http://stackoverflow.com/questions/25478331/adaptive-return-go-new-line-button-in-ios-custom-keyboard