How to hide the keyboard that pops up in RubyMotion? -


how 1 hide virtual keyboard pops in text field?

the button hides not seem appear , in case, next screen loads (which not have text field) still have keyboard in loaded position.

thanks!

update:

using following allows keyboard return:

 def textfieldshouldreturn textfield textfield.resignfirstresponder 'yes' end 

however, still remains open upon next screen.

it should true instead of 'yes' , don't forget set textfield delegate

 def textfieldshouldreturn textfield textfield.resignfirstresponder true end 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -