xcode - how can form a user in put with text field and without a button -


i want form textfield in view controller. after user make input text field , press return or dismiss keyboard touching screen, action must done. how can implement that? want code executed making global variable when keyboard dismiss:

 [(appdelegate *)[[uiapplication sharedapplication] delegate] somevariable:somevariabletextfield]; 

note: somevariable number if there no way form nsnumber variable textfield can use nsnumberformatter.

pressing return call "did end , exit" event,so can ctrl-drag uitextfield code,and implement method.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -