NumberPad keyboard type plus decimal point?

Discussion in 'Mac Programming' started by luckylefty01, Jul 11, 2008.

  1. luckylefty01 macrumors member

    Joined:
    Apr 8, 2008
    #1
    In my app I need to be able to enter decimal numbers. At the moment, there's no really appropriate keyboard for this, the only real choice is to use the numbers and punctuation keyboard, but it's not really a great choice since the numbers are too small.

    What would be pretty close to ideal would be if it was possible to add a decimal point in the bottom left of the numberpad style keyboard. Does anybody have any suggestions on how to do this?
     
  2. lucasgladding macrumors 6502

    Joined:
    Feb 16, 2007
    Location:
    Waterloo, Ontario
    #2
    As far as I know, there is no way to customize the keyboard for a decimal button. That said, there is another way to accomplish what you need to do.

    Hint: ATMs don't have decimal buttons either. You can mimic ATM functionality using the UITextField delegate methods.

    I still haven't released my app, so I don't want to give away all my secrets quite yet ;) . Think ATM, though, and you should be fine.

    Best of luck. Hopefully Apple releases a keyboard to fit the purpose soon. If you haven't already, submit the enhancement request through bugreporter.
     
  3. luckylefty01 thread starter macrumors member

    Joined:
    Apr 8, 2008
    #3
    Oh thanks, I hadn't thought of that.

    Not all my uses have to deal with money, so ideally I'd like to have the decimal point be flexible (i.e. the ability to enter 5, 5.5, or 5.25544) without having to resort to hard coding a precision, but on the other hand I think those delegate methods will give me a good way to do something else I was looking to do, which is a nice plus. So that'll work nicely for now.

    Good luck on your app:).
     

Share This Page