Hello,
I am new to interface builder, and just wanted to check the following:
1) Is it possible to add a keypad user interface element to
my application? Like the one you see when you're on a call,
with the list of digits 0-9. Is this something which I need to
code myself, or is there such a thing as a keypad ui
element that I can just add to a view?
2) Also, I wonder is it possible to extend apple's keyboard, so
it has like a TAB key, Control-C key etc. I guess that's gonna
be really hard to do.
for a given textview use interface builder to change the type of keyboard that is displayed when the user gives it focus (if not adding programatically that is). you'll also need to read up on how cancel the keyboard once it's opened as the keyboard doesn't automatically close when it loses focus. you'll hit your head on the desk a few times wondering why that darn thing doesn't just close as you would expect it to.
hope that helps
john
__________________
---------------------------------------------------------------------- I love being a dad, flying airplanes and writing code.
----------------------------------------------------------------------
Follow me on Twitter: @BostonMerlin
Feed your brain on Twitter: @iPhoneDev101
----------------------------------------------------------------------
iPhone Apps:
>> you'll hit your head on the desk a few times wondering why that darn thing doesn't just close as you would expect it to.
>> john
After suffering brain damage from the as mentioned head-hitting-desk scenario, I learned that in your "textFieldShouldReturn" function your should "resignFirstResponder" on your UITextField object.
I learned that in your "textFieldShouldReturn" function your should "resignFirstResponder" on your UITextField object.
Another way to handle this is to put the resignFirstResponder code in an action method and connect the text field's Did End on Exit event to it, which doesn't require you to become the text field's delegate. If I don't need to be the text field's delegate for any other reason, I prefer this method, but both should work just fine.
>> you'll hit your head on the desk a few times wondering why that darn thing doesn't just close as you would expect it to.
>> john
After suffering brain damage from the as mentioned head-hitting-desk scenario, I learned that in your "textFieldShouldReturn" function your should "resignFirstResponder" on your UITextField object.
Nice pretty keyboard goes away.
-M
anyway you can provide a sample or link to the answer? im hitting my head right now too. where is the textfieldshouldreturn function? do you have to create it yourself in the controller.h file? and how do you call the resignfirstresponder for the UITextField object?