[iPhone] NumberPad with return key?

I have a text field that I want to restrict to numeric entry only. The obvious thing seems to be to set textField.keyboardType = UIKeyboardTypeNumberPad, which pops up a modal numeric keyboard as expected. However, the numeric keyboard doesn't have a return key, so it gets stuck on the screen. How do I handle this?
BTW, I know I could use UIKeyboardTypeNumbersAndPunctuation, but the text field should really only have numbers in it, not punctuation.

On the screen in question my app is displaying a set of fields using a tableview. So far its a pretty standard interface...tap the plus button to go to edit mode then tap a row and a modal keyboard pops up. I'm thinking maybe hiding the keyboard if the user taps the same row again (in lieu of a Done button), but I'm not sure how obvious that will be to the first time user.
I like the idea of getting rid of the tap for edit mode, but I'm not sure how that would work here. ATM I swap out the UITableViewCells for UITextFields upon entering edit mode. I could do that on response to a selection message, but would the row automatically get redrawn when I make the swap? Maybe I can force a redraw somehow. I'll have to play with it. Thanks for the idea.

Similar Messages

  • How to open files with "return" key and delete files with "delete" key?

    Hi friends,
    It's been over a week since I got my iMac and I'm loving it. However, while I'm adapting alright to 'mac' key shortcuts (e.g. using the COMMAND-S for save as opposed to CONTROL-S used in PC).
    However, there are 2 things that are annoying me greatly right now.
    1. I like selecting files with keys as opposed to using the mouse. I make animations and prefer keyboard shortcuts. However, when I hit "return", instead of opening the file it goes into file-renaming mode. How do I change this? Likewise, I would like to delete files by hitting the delete key. This does not work - how do I change this?
    2. When I click SHIFT key sometimes, it gets 'stuck' - which is annoying because I start typing CAPITALS when I wasn't aware I've activated the CAP-LOCK key. How do I get rid of this? Like, I don't want to hit SHIFT for instance, and have that up arrow thing 'stuck' there.
    Your help would be greatly appreciated! Thanks!
    iMac G5   Mac OS X (10.4.9)  

    Hi
    Thanks for the star.
    If you went into Mac Help & searched, 2 results come up:
    Full keyboard access shortcuts for interacting with items (for selecting & activating controls).
    Full keyboard navigation keyboard shortcuts (for navigating Desktop, Windows, Menu bar etc)
    From the lists, select the link that closely describes your situation.
    I have to say that I can't reproduce your problem, does this happen just in applications or in everything? I don't know if it's to do with this but pressing Shift 5 times turns on Sticky Keys & Option(Alt) 5 times to turn on Mouse Keys (System Preferences>Universal Access>Keyboard).
    After typing "Sticky Keys" into Mac Help, I found this:
    "Pressing a group of modifier keys as a sequence
    To perform many tasks on your computer, you need to press one or more modifier keys (Shift, Command, Option, and Control) at the same time as another key. For example, pressing Shift-Command-Q in the Finder opens the Logout dialog.
    If you have difficulty pressing several keys at once, you can make it easier to press a set of keys by turning on Sticky Keys in the Universal Access preferences pane. With Sticky Keys turned on, you can press a set of modifier keys as a sequence. As you press each key, the symbol for the modifier key appears on the screen.
    Choose Apple menu > System Preferences and click Universal Access. Then click Keyboard.
    Select the On button next to Sticky Keys.
    To hear a sound whenever the computer registers that you have pressed a modifier key, select "Beep when a modifier key is set."
    To see an icon indicating which modifier keys you have pressed, select "Display pressed keys on screen."
    You can also use Slow Keys to adjust the amount of time between when you press a key and when it is activated."
    Any of this close to your problem?
    Steve
    Edit: I'm right, it's Sticky Keys:
    http://www.macusenet.com/190284-post2.html

  • Problems with Return Key (only in certain apps)

    Hi. As of this morning, my return key is having a particular problem. When I am given a choice, after quitting Word before saving a file for example, and the default choice is highlighted, when I hit the return key nothing happens. It's as if the app doesn't recognize the stroke at all. However, the return key works fine in its other normal functions.
    This problem is happening across the board, whenever I'm prompted by a program to make a choice. Any clue what might be causing this?
    Thanks.
    Austin T.

    Hi Austin,
    I would run Disk Utility -> Repair Permissions.
    See if that helps.

  • Submitting Form with Return Key?

    I have a form at www.bsatshirts.com login page that will not allow logging in without clicking the login button.  The question I have is; is there a way to set the return key to submit the form as well as hitting the login button? I look forward to any solution, or help that can be offered.  Thank you.  the code is as follows:
    Login to your account below
            or<br />
            <a href="http://www.bsatshirts.com/store/pc/form.html">create a new account.</a><br />
            User Name
            <input type="text" name="LoginEmail" size="12" />
            Password</span>
            <input type="password" name="LoginPassword" size="12" />
            <input name="PassWordExists" type="hidden" value="YES" />
                            <a href="JavaScript:document.login.submit();"><img src="images/login.gif" alt="" border="0" /></a>
            <input type="hidden" name="SubmitCO.y" value="1" />
            </h5>
        </form>

    your form uses javascript to make the click of an image submit the form. Use submit input type to have the return key submit the form:
    <input type="submit" value="login" />

  • Has anyone noticed how easy it is to read a passcode that lights up with each key you press from across a room? Is there a way to stop keypad from lighting up on iPhone 4S, iOS 7?

    Has anyone noticed how easy it is to read a passcode that lights up with each key you press from across a room? Is there a way to stop keypad from lighting up on iPhone 4S, iOS 7.0.3?

    Has anyone noticed how easy it is to read a passcode that lights up with each key you press from across a room? Is there a way to stop keypad from lighting up on iPhone 4S, iOS 7.0.3?

  • Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    All new keyboards need Snow Leopard 10.6.8 and above for full functionality.
    Rather short-sighted of Apple perhaps, but that seems to be a trend these days.
    I'm afraid the only fix is to upgrade to SL. Personaly, I'd take it back and get a refund and seek an older keyboard or a third-party one elsewhere.

  • Run quickSearch with the carriage-return key

    Hi to all,
    I am using JDeveloper 10.1.2 and developing an application using ADF Business Components and JheadStart 10.1.2.
    JHS built the application and i need to do some post-generation.
    I need to run quickSearch with the carriage-return key.
    To do that, i replace
    <messageTextInput id="searchText" name="searchText" text="${searchBean.searchText}" rows="1" maximumLength="255" columns="60"/>
    by
    <messageTextInput id="searchText" name="searchText" text="${searchBean.searchText}" rows="1" maximumLength="255" columns="60">
    <enterClientAction>
    <fireAction event="quickSearch"/>
    </enterClientAction>
    </messageTextInput>
    The problem is the carriage-return action go systematically to the BackButtonErrorPage.
    How can i solve this problem ?
    Is it a good solution ?
    Sorry, if my english is not very well.
    Thanks
    Laurent

    Thank you Martijn for your help
    I tried your solution :
    In UIX :
    <messageTextInput id="searchText" onKeyDown="if(window.event.keyCode==13) doSearch(event,'goSearchButton');" name="searchText" text="${searchBean.searchText}" promptAndAccessKey="&amp; de recherche" rows="1" maximumLength="255" columns="60"/>
    <button id="goSearchButton" name="goSearchButton" onClick="doDataEvent('quickSearch','quickSearch', 'true' );" text="${nls.GO}"/>
    In javascript :
    function doSearch(e, buttonName) {
    buttonToClick = document.getElementById(buttonName);
    buttonToClick.click();
    The behaviour is the same, i often go to the BackButtonErrorPage but not systematically.
    But if i use the search button, i never go to the BackButtonErrorPage.
    I don’t undersand,
    Anybody has an idea ?
    Regards
    Laurent

  • HT201178 when using apple bluetooth keyboard with iPad, hitting the enter/return key while typing in iMessage only adds another line not 'send' the message? is there a setting to change that somewhere?

    when using apple bluetooth keyboard with iPad, hitting the enter/return key while typing in iMessage only adds another line not 'send' the message? is there a setting to change that somewhere?

    Everywhere that I've checked it is not possible to do this. I would like to even do this using the vkb. I hate having to stretch my thumb all the way up just to send a message. It's messaging, not a report or email. Seems backwards. Hopefully some day Apple can add this option.

  • Return key disabled when using safari with Mavericks OS X

    Hi,
    Has anyone got a way to use return key when using safari??

    niall1111 wrote:
    It is,and always was, the return key that did this in snow leopard and other operating systems!
    ??? I have two Macs that can run Snow Leopard & in neither of them does the return key take me back a page. Also, nowhere in the lists of keyboard shortcuts for OS X or any of the browsers I use (Safari, Firefox, & Chrome) is the return key mentioned as providing this shortcut.
    Some web pages may have been programmed to respond to the return key that way, but not many I have ever encountered are. I guess it is possible some extension or other third party add-on might provide that function, but itis definitely not something that has ever been built into OS X or any of the common browsers used with it.
    In Safari (on Snow Leopard, Lion, Mountain Lion, & Mavericks) two keyboard shortcuts are provided by default to go back a page: one is the CMD-[ combination Barney already mentioned. The other is CMD + the left cursor key. Likewise, CMD+] or CMD + the right cursor key will take you forward a page (if you have previously gone back to a previous page).

  • Return key broken, only works with holding control key

    I think my young daughter did something on accident while using the computer.
    The return key only works now while holding down the control key.  It will not work as it normally should.  I do alot of word processing on my computer and this is an big hassle now.
    Please help.  This is a serious pain in my.........
    thanks - sam

    a brody, I did already try my older mac keyboard and it has the same problem.  Here is a couple more pieces of info that may help. 
    When this started, my daughter was playing the apple Chess game.  With the voice.  This problem started after that.  And, with my current problem, sometimes the voice comes on and will read me a folder name, or read me my email subject. 
    Today, the return key started working for a few hours, but then stopped again. 
    This is weird and i am clueless.  Anymore thoughts??

  • Inputfield with Return/Enter key

    Hi,
    Could someone give me  hints about Inputfield with Return/Enter:
    In General I'd like to press the button after Entering a value in the Inputfiled, but it is also easy to handle with Return/Enter key.
    Therefor I want to have both possiblity(press Button or Return/Enter key).
    How can I here implement the 2. alternativ(Return/Enter key)? - with Javaskript or possible directly in HTMLB ?
    Thanks a lot in advance,
    Regards,
    Gauguin

    Hi,
    the label <InputField> has as agreggate submitOnEnter which triggers a server event when the cursor is in that field and you press <enter>.

  • My iphone 3GS will not type letters properly. I cannot tap on y - it gives me t or u.If I just hover above the return key it will time out 3 lines of gobbledegook. Any suggestions please?

    My iphone 3gs will not type properly. I am unable to tap on y - it gives me t or u.If I just hover above the return key if will about 3 lines of J,N and L!!!!  Has anyone any idea about how I can sort this out?

    Tap Settings > General > Reset > Reset All Settings. All your preferences are reset, but your data and media aren’t deleted.

  • Keyboard skin for iMac keyboard with 'L' shaped Return keys -do they exist?

    Hi people. Can someone PLEASE tell me where I can find a silicon cover for my European G5 iMac's keyboard. It has a large 'L' shaped Return key and all of the places I've tried (zcover etc) only stock skins for keyboards with thin, American stle Return keys.
    Any suggestions would be greatly appreciated. Thanks.

    I use this cover, the iSkin. The area that covers the return key and the key above is molded L-shaped. It will accommodate a US or Int'l Apple keyboard.

  • PUT KEY command with returned SW 6982

    There would be some other threads dealing with PUT KEY command however, my put key command failed with SW6982.
    Firstly, I have done it successfully in Java and now I migrate this solution to C#.Net, I have an PCSC class which helps me communicate with the SCreader. I refered to this thread
    [PUT KEY APDU|https://forums.oracle.com/forums/thread.jspa?threadID=1551395]
    I implement exactly the same as I have done in Java (based on source code provided in the thread mentioned above) but failed. Here's a log file for the communication
    Card Manager Selection --> Success!
    INITIALIZE UPDATE Command sent --> Success
    Data from Card: 00 00 00 93 02 90 97 95 20 93 01 02 00 0A FB 59 58 D6 62 71 BE 71 F2 E6 1C 37 D8 7D
    Diversification data: 00 00 00 93 02 90 97 95 20 93
    Static key set Calculation --> Success
    S-ENC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
    S-MAC: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
    S-DEK: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
    Session key set Calculation --> Success
    Session ENC: 33 9F 1D 7F 5D 58 41 EB 03 4F 5C E2 34 55 78 94
    Session C-MAC: C6 71 3F 31 B8 DC 1F 89 05 DF EC B4 06 5C B8 1E
    Session R-MAC: 3C AE E5 A2 73 1A D0 52 69 0B C8 B5 A1 0F 34 01
    Session DEK: 33 9F 1D 7F 5D 58 41 EB 03 4F 5C E2 34 55 78 94
    Card cryptogram: BE 71 F2 E6 1C 37 D8 7D
    Host cryptogram: 4B 48 C8 62 AB E4 E5 8C
    EXTERNAL AUTHENTICATE C-MAC: CB 83 EE 48 91 BE 1D 0C
    EXTERNAL AUTHENTICATE command: 84 82 00 00 10 4B 48 C8 62 AB E4 E5 8C CB 83 EE 48 91 BE 1D 0C
    Data to calculate MAC: 84 D8 01 81 4B 01 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47
    PUT KEY apdu C-MAC: C7 16 78 CE F3 48 EE A7
    PUT KEY sent: 84 D8 01 81 4B 01 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 80 10 5C 8F 22 35 FF 24 F6 4E 20 92 4D BC 24 44 34 F7 03 8B AF 47 C7 16 78 CE F3 48 EE A7What I try to do is that: I try to replace the old key set (40...4F) by itself (no derivation rule is applied)
    I have replaced the values of this scripts to the java code and it produces the same values as in C# code. I really don't know why? The External Authenticate command executed successfully and I use its C-MAC to calculate to C-MAC of PUT KEY command (as detailed in EMV CPS v1.1, page 79/103).
    One more thing: in the source in the thread mentioned above, I saw that in the PUT KEY apdu command, he added the value "00" after the C-MAC of PUT KEY. I don't know why?
    Is there anybody experienced the same problem as mine and has resolved it? It would be very kind of you to spend a little time on my problem and advice me what to do, I'm really stuck now.
    Best regards,
    JDL

    bug found, question answer

  • I have an Iphone 4 with IOS 6 and my emails have disappeared.  I also have a very slow reaction time to my touch screen.

    I have an Iphone 4 with IOS 6 and my emails have disappeared.  I also have a very slow reaction time to my touch screen. Help!

    Hello there, parihargs1.
    To troubleshoot display brightness issues the following article provides 2 key steps:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Of note is the following:
    Display has no backlight or dark screen
    Toggle the ringer switch to see if the unit vibrates. If it does, it could be that iPhone is getting power, but is not displaying any image.
    Try turning iPhone off and then on again.
    While connected to the iPhone charger, try to reset the iPhone.
    If the low-battery screen appears, charge the iPhone.
    Display does not adjust brightness automatically
    The ambient light sensor brightens the display when using the iPhone in brightly lit environments, and dims the display in low light. To test this sensor, do the following:
    If the iPhone is in a protective case, remove it from the case. If there is a protective film on the display, remove the film.
    Verify that the Auto-Brightness setting (Settings > Brightness and Wallpaper) is set to ON, and that the Brightness level is set near the middle of the slider.
    Press the Home button to return to the Home screen and then press the Sleep/Wake button to lock the iPhone.
    In a bright environment, cover the top third of the iPhone to block the light, then press the Sleep/Wake button or the Home button to wake the phone. Slide the slider to unlock the phone.
    Notice the brightness of the screen and application icons; they should be somewhat dimmed.
    Remove the cover from the top of the display and in a few moments the display should get brighter.
    If these steps do not resolve your issue please refer to the "Issue not resolved" section for your next step.
    Thansk for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

Maybe you are looking for