by
978 15
0
5
169k
0
Top 1% !
Popular
Pearl of Wisdom
Specified
OpenSource
Popularity: 10680th place
Created
Modified Oct 22, 2014

Published on:

No tags for this snippet yet.
LanguageText
LicenseMIT_X11

IOS dismiss keyboard after editing textfeild

how to dismiss keypoard after editing textfeild
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/203964/IOS-dismiss-keyboard-after-editing-textf?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
//Begin by declaring action methode in UIViewController.h - (IBAction)dismiss_keyboard:(id)sender; //update methode in UIViewController.m - (IBAction)dismiss_keyboard:(id)sender { [sender resignFirstResponder]; } /********finish step*******/ //Select the text field in the view and display the Connections Inspector //(View -> Utilities -> Connections Inspector) in the right hand panel. //Click on the circle to the right of the Did End on Exit event, //drag the line to the view controller icon //located in the panel immediately beneath the view canvas //in the Interface Builder panel /** ***repeat finish step for all textfeild ***/ //http://www.techotopia.com/index.php/Writing_iOS_7_Code_to_Hide_the_Keyboard
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus