Andrew, how is this going? this is Dima P!
As far as I know, there is no great way to do what you are trying to do. You can easily select one of the built-in types listed here.
typedef enum { UIReturnKeyDefault, UIReturnKeyGo, UIReturnKeyGoogle, UIReturnKeyJoin, UIReturnKeyNext, UIReturnKeyRoute, UIReturnKeySearch, UIReturnKeySend, UIReturnKeyYahoo, UIReturnKeyDone, UIReturnKeyEmergencyCall, } UIReturnKeyType;
What you can do is either add an inscription on the keyboard containing the cancel button, or try to go through the hierarchy of views and overlay what you want on the button this way (although this method is not reliable). Unfortunately, this is one that Apple has not yet provided a lot of settings.
edit: Actually, I think from the very beginning I misunderstood your question, since you donβt want the cancel button as the main return button anyway. In this case, the appearance of the input accessory is definitely suitable for the exit.
Dima
source share