I want to display enter key on keyboard instead of return key. Because i want user to type in a texView. We know that there is no keypad return in textView. Generally, i want to replace the "return" key with "enter". Normally in textView, the return key works as enter. So i need the return key labeled as enter. Is it possible?
Try using the returnKeyType attribute:
UITextField *textField = [[UITextField alloc] init];
textField.returnKeyType = UIReturnKeyTypeDone
Here are the available options:
typedef NS_ENUM(NSInteger, UIReturnKeyType) {
UIReturnKeyDefault,
UIReturnKeyGo,
UIReturnKeyGoogle,
UIReturnKeyJoin,
UIReturnKeyNext,
UIReturnKeyRoute,
UIReturnKeySearch,
UIReturnKeySend,
UIReturnKeyYahoo,
UIReturnKeyDone,
UIReturnKeyEmergencyCall,
UIReturnKeyContinue NS_ENUM_AVAILABLE_IOS(9_0),
};