Hide keyboard when UITextField is selected

I am able to hide the keyboard when the user clicks off of a uitextfield by using the [sender resignFirstResponder] command, but I want to hide it as soon as the user clicks inside the textfield. Is this possible?
I have the uitextfield "Editing Did begin" etc etc set up to call a method and that is using the same commands ( [sender resignFirstResponder] ) but the keyboard never disappears? I can see the method is being called and the commands are being run but the keyboard just stays there.
I want to call another method to change views when the user selects the uitextfield. The view changes but the keyboard is up and will not go away.
Any suggestions?
Thanks

Well, I created a dummy custom button on my interface and when the textfield is selected this method gets called and the Log message is output to the console but the keyboard comes up and remains up no matter what. I tried to refocus to the button and resign the textfield as the firstresponder but no luck. Is this something just so apparently wrong with this code?
-(IBAction)showDatePickers:(id)sender
NSLog(@"Inside showDatePickers: %@", sender);
[dummyButton becomeFirstResponder];
[departureDate resignFirstResponder];
//[[RootViewController sharedRootViewController] loadDatePickers:sender];

Similar Messages

  • When-tree-node-selected not fire while navigating through keyboard(Urgent)

    i am using treeview for displaying chart of account and fires the above said trigger in the form, but the trigger has no effect whilt navigating tree view with keybpard arrow keys until user explicitly select the node through mouse help me out plzz
    i want that trigger also fires when user navigate and select node through keyboard or through mouse thanks
    its urgent

    Stop duplicating your threads!!!
    when-tree-node-selected (Urgent)
    You posted the same question 2 days ago and I've answered you, you didn't even provide an exact version of your forms.
    Posting again will not change your problem.
    Do not waste space on the forum.

  • Why doesn't the keyboard display lower case when this is selected?

    Why doesn't the keyboard display lower case characters when these are selected?

    The same reason physical keyboards have capital letters, easier to read. If the iPad keyboard is in caps you'd know because the Shift key would be colored blue.

  • Code 41 Error when installing my HID keyboard driver with my HID mouse driver

    I am developing a HID keyboard driver and a HID mouse driver based on HIDUSBFX2 sample code.
    So I added some lines as below into both keyboard driver inf file and mouse driver inf file.
    ;-------------- Service installation
    [hidKeyboard_Device.NT.Services]
    AddService = hidKeyboard,, hidKeyboard_Service_Inst
    AddService = mshidkmdf,0x000001fa, mshidkmdf_Service_Inst
    ; -------------- hidKeyboard driver install sections
    [hidKeyboard_Service_Inst]
    DisplayName    = %hidKeyboard.SVCDESC%
    ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
    StartType      = 3               ; SERVICE_DEMAND_START
    ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
    ServiceBinary  = %12%\hidKeyboard.sys
    ; -------------- mshidkmdf driver install sections
    [mshidkmdf_Service_Inst]
    DisplayName    = %mshidkmdf.SVCDESC%
    ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
    StartType      = 3                  ; SERVICE_DEMAND_START
    ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
    ServiceBinary  = %10%\System32\Drivers\mshidkmdf.sys
    LoadOrderGroup = Base
    [hidKeyboard_Parameters.AddReg]
    HKR,,"LowerFilters",0x00010000,"hidKeyboard"
    I installed my HID mouse driver first successfully.
    And then I tried to install my HID keyboard driver. But the installation was failed with error code 41.
    Windows successfully loaded the device driver for this hardware but cannot find the hardware device. (Code 41)
    When I checked mshidkmdf service registry, I can find that Owners value is "oem6.inf, oem5.inf"
    oem6.inf - keyboard driver inf file, oem5.inf - mouse driver inf file
    And when I checked the log with traceview, keyboard driver was not able to receive any IRP from HID class.
    On the other hand, mouse driver received the IRP and reinstalled.
    * If I uninstall the mouse driver and then install it again, the driver is installed successfully. I mean that this issue was found when first installation.
    Please help me~

    if you are filtering below the hid miniport, why do you have separate keyboard and mouse infs? For a filter below the miniport just use one inf and the filter will see both the keyboard and mouse requests (assuming you report a keyboard and mouse TLCs
    in the hid descriptor)
    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

  • Reveal pages when checkbox is selected?

    Hi,
    I'm used to Acrobat Pro but new to LiveCycle. I need to hide several pages on a form until a user activates a checkbox. ie/  user clicks on "[x] category one" and the page that contains category one content appears. If the user deselects the checkbox, the page is hidden. ie/ user clears [ ] category one and the page with the content disappears from the user's screen.
    \i think it's called 'reveal page' but am not sure. Can someone point me in the right direction, please?
    Thanks!

    Well since I answered my own question, I thought I'd put the answer here just in case someone else can use it.
    First, some griping about LiveCycle: (you have to put up with this because this product is horrible and I had to pay a fortune to use it...)
    In this day and age, why pc only? I needed only this one tiny but crucial function but was forced to borrow a pc and then purchase pc-only software ($300+) that I will doubtless use again. All of this should have been doable in Acrobat Pro with some scripting. (If your Google skills are better than mine and you find an answer, then please share it here and save others the pain and expense...)
    Why is there a complete disregard for any sense of accepted, standard shortcuts - keyboard, mouse dragging and other placement methods? Where is the ability to drag guides out from rulers? Why can I not hold shift while CTRL+dragging a form object to keep things lined up? BTW, ALT is how this copy-dragging should be done - not CTRL. Where are the smart-guides? Why, when I target an object in the Actions Builder do I have to manually scroll or tediously collapse each page in the tree menu to get to the items further down the list? What a waste of my precious and now non-profitable time on this project.
    I spent hours creating beautiful client-approved documents in InDesign only to discover that LiveCycle cannot import my work in a way that preserves my layout, causing me to have to rebuild all of my form elements. We're talking here about 9 documents, and almost 150 pages of pain-staking layout that had to be redone. And don't tell me that I should have used LiveCycle to begin with. This should have been much more seamless than it was.
    Seriously, this product is expensive, non-inclusive, non-standard, non-compliant, and resembles using Windows 95 in ways that no sane person should have to put up with, yet alone pay for and put up with in 2014. Yes, Adobe High Priests, I'm talking in vain to you, knowing that this will fall upon indifferent, deaf ears.
    OK - so here's the answer to my question. In a nutshell, the steps to hide/reveal pages based on the user checking or unchecking a box are:
    Create the checkbox by dragging "Checkbox" from the Object Library. Enter the question text and ensure that the Data Binding Name is unique for each instance. Let's say that all the check box items are on page 2 of the document. When the user selects the first checkbox, page three is revealed. So, for that check box, name it something like "CheckBox_Page3". The others would be called "CheckBox_Page4", "CheckBox_Page5", and so on.
    Select the first check box (Let's stick with CheckBox_Page3 as our example.) and then right-click it, choosing Actions=>Add Action (or Edit Action if an action already exists). The Action Builder dialogue opens.
    I'll need two actions for each check box. One that says, "If this box is unselected, then the page is hidden," and another that says, "If this box is selected, then the page is visible." Set the Condition to: "When check box CheckBox_Page3 is unselected" and the Result to: Show or Hide An Object [HIDDEN]. Then, scroll through and select Page 3 in the left hand column.
    Set the second action so that the Condition is: "When the check box CheckBox_Page3 is selected" and the Result to: "Show or Hide An Object [VISIBLE]. Then, scroll through again to select Page 3.
    Go through all of your check boxes until all the pages are set up with an unchecked/hidden and checked/visible configuration.
    The last thing to do is to select all of the pages that will be hidden/revealed in the left column. When that list is selected, visit the SubForm tab; Presence section and choose from the pick-list: "Hidden (exclude from layout)." Now the document will open with the appropriate pages hidden from view until a user selects the corresponding check box.
    Save OFTEN. Test thoroughly and on multiple platforms. Good luck.
    -Pete

  • IPad keyboard will not dismiss with hide keyboard button

    I have a UITextField on my screen. The keyboard will not disappear when I press the hide keyboard button in the lower right corner. Pressing the "Done" button works just fine and the keyboard will disappear.
    I have connected the textbox's delegate to Files Owner. Verified by looking at the Text Box's Connection Inspector.
    Under Outlets for the textbox "delegate-Files Owner"
    My H file contains  @interface SettingsView : UIViewController <UITextFieldDelegate, UITableViewDelegate, UITableViewDataSource>{
    In my M file I have the following code.
    -(BOOL) textFieldShouldReturn:(UITextField*) textField {
        [textField resignFirstResponder];
        return YES;
    When I press the keyboard hide button(lower right corner), the keyboard buttons will sometimes become unresponsive for about 1 second, but the keyboard will not disappear. I would appreciate any guidance with solving this problem. I find it troubling that this key is not working. My efforts to find a solution have come up nil and there appears to be little to no documentation anywhere regarding this lower right corner button.
    Thanks in advance.

    Thanks for the quick reply. Unfortunately nothing worked. Below is the extra code added in my M file
    - (BOOL)textFieldShouldEndEditing:(UITextField *)textField
        [textField resignFirstResponder];
        return YES;
    I placed a breakpoint in both the textFiledShouldEndEditing and textFieldShouldReturn. In both cases neither function was called when I pressed the hide keyboard button. They were only called when I pressed the Done button. After a little more research I have found people with the exact same problem, yet no solutions available.
    What gets called when the user presses the hide keyboard button? Is this hide keybaord button new?
    My only assumption is that somehow the code behind the keyboard has a bug in it that I'm experiencing. I have a few older iPad projects that I decided to try out and run. Each have a UITextEdit field and every one encounter the same problem with the hide keyboard button.

  • How do i hide keyboard while viewing bookmarks?

    can't hade keyboard to see bookmarks. If i use the hide keyboard symbol on bottom left of keyboard i go back out of bookmarks into an open page. i want to be able to close keyboard and still see bookmark list. also is it possible to look at bookmarks without opening a new tab? Thanks!

    I have a motorola razr maxx hd running stock jellybean. I use swift keyboard. When the bookmarks are in screen the keyboard opens automatically (i wish it didn't). If I hit the down symbol on the bottom left to hide the keyboard the keyboard does disappear but the screen changes back to previous webpage and bookmarks disappear. I can't find any way to see the bookmarks without the keyboard getting in the way.

  • Hide Particular Item Group from Selection Criteria of Sales Analysis Report

    Hello Experts,
    Is this possible to Hide Particular Item Group from Selection Criteria of Sales Analysis Report?
    I have one Item Group as 'Special Items'.
    Now, when I open  Item wise sales analysis report, I want to hide above mentioned group from selection criteria.
    Thanks in advance.
    Best Regards,
    Pankit Sheth

    Hi,
    1. Not possible to put validation for selection criteria windows.
    2. In standard, I don't think it is possible to hide only one item group.
    3. Alternatively don't give authorization to user for running sales reports. If still need create customized query and ask user run every month.
    Thanks & Regards,
    Nagarajan

  • Tree item when-tree-node-selected fires differently from 6i to 10g.

    In forms 6i, when you keyboard navigate between tree nodes, the wtns trigger will fire. In 10g it does not. In 10g, it will fire if you press the tab key or mouse click on a node.
    Anyone know if this was done on purpose?
    I ran into this after finally trying my props.fmb in 10g. It works fine in 6i, but not in 10g
    copy of my form is here:
    http://www.tailboom.com/oracle.php
    Forms [32 Bit] Version 6.0.8.18.3 (Production) cleint server
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    I wrote most of the tree handling code for oracle apps APPTREE. This is the code that most if not all tree's in apps uses to build standard tree. So I have a pretty good understanding of the forms tree item. And know the wtns fired for web forms 6i on every node like 6i client server. This is very strange IMO.
    Thanks.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Oleg,
    thanks for the reference. Although the bug you identify deals with when-tree-node-activated, it is possible they fixed the when-tree-node-selected issue at the same time. With my test tree, i can currently duplicate both issues. I tried to download the patch, but it is only available for linux and unix. No windows patch. I don't have my linux env up and running to where I can test yet. So I can not confirm.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • WHY does the finder insist on rearranging the files in a folder in alphabetical order even when I have selected "none" in the preferences for file organization?

    WHY does the finder insist on rearranging the files and/or documents in a folder in alphabetical order even when I have selected "none" in the preferences for file organization? Even after I numbered the documents/folders to keep them in my preferred order, it will still displace them occasionally. This is becoming increasingly frustrating!
    Is this a "Pages" issue or "FInder"? The vast majority of documents I use are in Pages, but there are also Numbers, PDFs, jpegs and a few other applications involved. This never happened before I upgraded to Mountain Lion; in Tiger, the documents (mostly Appleworks) and files stayed where I wanted them to be.
    I am visually oriented, and prefer to arrange items in a folder in an order that makes them easier for me to access, which is often NOT alphabetical.
    Can anyone suggest a solution? Please??
    Thank you.
    Sara

    nbar,
    Thank you for your reply.
    However, I do not understand what you mean by "user account." I am the only user, and can find no options for "user" or "guest." The parental controls have always been off, as there are no other people who have access to my computer.
    Frank,
    Thank you for your reply.
    All my documents, files and folders are in icon view, Arranged By: none in both view and view options. This arbitrary rearranging does not happen all the time, only when I make a substantial change to one of the documents in the file or folder. I'm not sure what you mean by "column heading."
    MichaelLAX,
    Thank you for your reply.
    I know, to my sorrow, that Appleworks does not work with Mountain Lion. I spent at least three months converting approximately 2,000 Appleworks documents to Pages, Numbers, Bento (for databases) and Touchdraw (for drawings). So this is not the problem; but as I said, I did not have this rearranging problem with Appleworks - the icons stayed where I wanted them to be. I still miss the ease and reliability of Appleworks, darn it!
    Frank,
    Thank you for your second reply.
    I do have the Sort By: in view options as well as in view set to "none."   The finder still insists on rearranging, but only when I have made a substantial change to a document in that file or folder.
    Any futher thoughts?
    xdab, 
    Thank you for your reply.
    "Are you are using icon view, but for some reason the finder moves files around? is that the problem?"
    YES!! This is exactly the problem.
    "If this operation is successful then erase the original and rename the new one to the name originally chosen by the user."
    This seems like a lot of trouble, especially as I often work on several documents at the same time.
    "By the way, the finder has a "clean up by" menu that rearranges icons in one of the standard orders, there are shortcuts that produce the same effect, for example <option><cmd>1 sorts them by name. Is it possible that this shortcut was typed by mistake without you noticing?"
    I do know about this "clean up by" option, and avoid it like the plague! So I doubt this is the issue, and I infrequently use keyboard shortcuts like this anyway.
    Thanks all who replied. None of the suggestions seem to work, however. Any others out there?
    Regards,
    Sara

  • Trying to convert a Lower HID Keyboard Filter to an Upper filter above kbdhid

    Hello,
    A few months ago I solicited some help regarding writing a filter for a USB/HID keyboard.  Thanks to all who gave help especially DH.  It does work and I can even get diagnostic feed back from it.
    Unfortunately, it seems to lack the flexibility I required.  It is loaded as a lower filter below  kbdhid.   I do get the HID keyboard reports, but I can only change that single report.  I want to be able
    to insert an additional keyboard report ( I want to be able to send another key with it's own modifiers).  I don't see/know how to do it. Here are a couple of options I thought about, but I don't know how to implement either one:
    1)
    It seems to me that one option would be to some how get the kbdhid driver to request a second read from the keyboard WITHOUT an actual keystroke occurring.  Presumably it would be identical to the first one since the pressed keys hasn't changed
    in that brief time.  But, then using this second report one I could change it to insert the desired key/modifier.
    2)
    Another option might be to use an upper filter between kbdhid and kbdclass. (It would have to be before the I8042 to the kbdclass input because  we already have an upper filter for the kbdclass that filter keystroke from a PS/2 keyboard. ) 
    I have tried moving the existing, functional HID filter from a lower filter to an upper filter.  It does load and devcon shows it to be an upper filter above kbdhid.  Debug diagnostics show that DriverEntry gets call and that the EvtIoDeviceControl
    routine gets called a few times initially, just like when it was a lower filter.
    However, the EvtIoRead and EvtIoWrite routines never get called, let alone the ReadCompletion routine.
    Obviously there is something different between lower and upper filters, but what.  Do they take the same callback routines/protocols?
    Also is the output of the kbdhid in HID keyboard report format or has it changed to the KEYBOARD_INPUT_DATA format.
    How can I capture HID keyboard data after kbdhid?
    3)
    Thanks,
    Don

    the way to make this work with your current setup is to queue the read request kbdhid sends and then send down your own request. When you want to report a new key outside of the hw reporting, you complete the queued read with the data. This gets complex
    if the read you send down completes before kbdhid can send another read
    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

  • Dynamic screen layout - Hide Field Group until user selects country

    Hi.
    Does anyone in the PCUI commuity know how to hide a particular reference field group (field group that contains several fields) and only make it visible when the user selects a particular value from a dropdown in a differen field group on the same screen.
    Regards
    Sergio

    Hi,
    I am trying to do something similar in Advance search area of Opportunity.  I want to hide few fields for non managers.  I created field group variant and added that to field group and all the fields.  I modified method if_crm_bsp_model_access_il~get_fieldgroup_variant.  I put breakpoint at this method and it does get executed but the page doesnt load correct variant.  Did you get this to work?  if so can you please share your experience on what else do I need to change to make it work.
    I have separate thread going regarding this issue.  Here is the URL for that:
    [SAP CRM: People Centric UI (Read Only Archive);
    Thank you,
    AP

  • Display Column only when Current Year Selected

    Hi Gurus,
    1)I have a Req where in I need to Display a Column only when 2012 is selected,It shouldn't appear when i select 2010 & 2011 in the Prompt.
    2)I have to display a column only when the Last month of the Quarter is selected.
    Any help???

    Hi,
    Make it two reports, one with the column and the other report without the column. Place both the reports in two different dashboard sections and use conditional show/hide section as explained here,
    http://total-bi.com/2011/01/obiee-hide-show-sections/
    Regards,
    Dpka

  • Possible fix for slow/sluggish keyboard when texting(SMS)

    I've had a problem with the sluggish keyboard when texting for a while now, but I believe I've found a solution. For me this solution speeds up the keyboard dramatically immediately after performing it.
    1. Open SMS app and start to type a text message
    2. Notice the slow keyboard
    3. Press home button.
    4. Open Safari
    5. Go to a simple web page (I use Google's homepage) and let the page load completely.
    6. Close all other browser windows. (Not sure if this is absolutely necessary, but it doesn't hurt)
    7. Press home button.
    8. Open SMS and continue typing your text. Your keyboard should be fast.
    To Apple: I'm not sure why this works for me, or if it works for anyone else, but it seems to be a problem with an unloaded page in Safari. When a page is loaded or forcibly stopped (by pressing 'x') the problem goes away.
    Message was edited by: The_Magistrate
    Message was edited by: The_Magistrate

    If you literally "checked" them, meaning the checkboxes, that only affects their visibility. To remove them, select one and then click on the "minus" part of the "plus minus" at lower left.
    Doug

  • How to prevent mail app on OS X & iOS from automatically marking email messages as read just when they are selected either intentionally or not

    Good morning guys
    is there a way to prevent mail app on OS X & iOS from automatically marking email messages as read just when they are selected either intentionally or not
    thanks

    On OS X, You are able to hide the preview window on the right in normal mode, or on the lower side in classic mode, by simply putting your cursor on the thin bar which is in between, and then make it as small as possible, so it goes away.
    Then your messages won't be automatically read when clicked once, but only if you click them twice and a new window with the message opens.
    Also, you are able to mark them as unread again, which is a silly workaround, but possible.
    You can do that by right clicking and select 'Mark as...' -> unread.
    On iOS, I'm not sure..

Maybe you are looking for