UITextField capitalize issue.

Discussion in 'iOS Development' started by johnmabassa, Jul 6, 2009.

  1. johnmabassa

    johnmabassa Member

    Joined:
    Mar 16, 2009
    Messages:
    87
    Likes Received:
    0
    Hi,
    In my app I have a textfield where user has to enter a serial number which is a mixture alphabets and numbers, so I am using "Name phone pad". I wanted them to be capitalized, so I enabled the option "capitalize all characters" but after that when I press "Zero" from number pad , it is displaying "+" instead of "0". Have anyone seen this issue? Is there anyway to avoid "capitalize" while the pad is number pad.

    -John
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    You, sir, just found a bug. Use radar to let Apple know.
    http://radar.apple.com/

    What I would do (I didn't know always use capitalization was an option) is catch the keypress as the user makes it. If it is a letter or punctuation, let the text field operate as usual. If it is a letter, convert it to a capital letter, and either pass that on (if that is possible), or simply replace the textfield's text with the old string plus the new letter (capitalized).
  3. johnmabassa

    johnmabassa Member

    Joined:
    Mar 16, 2009
    Messages:
    87
    Likes Received:
    0
    It seems there is some problem with the radar page. I am not able open it up. I tried from many PCs.
    Is there any alternate way to log the bug?

    -John
  4. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Hrmm... It works fine for me. Try logging into it with Safari.

Share This Page