iphone - UITextField KeyboardType - Xcode and IB? -


i'm using ib design main ui, , it's worked well. however, i'm looking ability have code override ib's value keyboard type.

currently, ib keyboardtype set numbers , code trying set default keyboard (at least temporarily, later want option change keyboardtype on fly).

here's code:

nsinteger uikbtype = uikeyboardtypedefault;  […]  - (uitextfield *)varafield {  varafield.keyboardtype = uikbtype;  return varafield; } 


Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -