Whenever we are trying to edit in a UITextfield the keypad automatically appears.Through keypad we do all the necessary editing.The keypad does not disappears automatically.We need to do some trick to make it disappear hen we tap on the screen.   In .m file we need to write the following code: MettleTech BlogUSA info@mettletech.in

Enable UITextField Return key

Monday, 12 August 2013 by

UITextField implement the UITextInputTraits Protocol. The protocol specifies a property called enablesReturnKeyAutomatically.The default value for this property is NO. If you set it to YES, the keyboard disables the return key when the text entry area contains no text. As soon as the user enters any text, the return key is automatically enabled.   In .h