Setting initial UIPickerView selection without click on iPhone

Is there a way to set the initial selection of a UIPickerView without generating the selection click? For example, I have a UIPickerView with 3 rows, and I want the 2nd row to be selected when the app starts. Right now, I'm calling this during initialization:
picker selectRow:1 inComponent:0 animated:NO
but it generates the same sound that plays when a user selects a row. The only way I've found so far to silently set the default selection relies on the undocumented method setSoundsEnabled.

Hi Chris, and welcome to the Dev Forum!
I've never read about any other solution besides setSoundsEnabled except for persuading the user to turn key clicks off in the Settings panel. But you reminded me of an idea I meant to try (atm all I have is a 1st gen touch and no ear phone plug).
Try this if you haven't already: Create a UIPickerView in code, set only the dataSource, then select the rows you want. Then set the delegate and add the picker to a content view. If it still clicks prior to becomming visible, see if setting its hidden, alpha, or userInteractionEnabled properties has any effect. It doesn't make a lot of sense for an invisible picker to click, so I'm hoping some combination of circumstances will convince it that a click is inappropriate.
If there's nothing in that idea, I'm afraid I can't help.
\- Ray

Similar Messages

  • RE: Setting initial DropList selection

    Gary writes...
    >
    Does anyone know how to set the initially displayed selection
    of a DropList to something other than the first element of the
    array. <DropList>.IndexValue is supposed to be settable
    according to the documentation, but it doesn't seem to be so.Gary, try setting the <DropList>.IndexValue in your Display method AFTER
    the "self.Open()" call. I reported this bug sometime ago, and I believe
    it will be fixed in an up coming build of R3.
    Steve McIntyre
    MCI Systemhouse
    Applied Technology Research
    ------------------------------------

    Hi Gary !
    If setting <DropList>.IndexValue doesn't work, I suppose you set it
    before invoking the Self.Open() method of your UserWindow.
    Try to set the IndexValue attribute of your DropList after invoking the
    Self.Open() method. I think it will work.
    Hope this helps !
    - Manuel -
    Manuel DEVEAUX
    Fort&eacute; Developer
    Mutuelle Pr&eacute;viade
    Nancy, FRANCE
    E-Mail : [email protected]
    De : GARY DALE +44 (0)1473-222466[SMTP:[email protected]]
    Date : mardi 13 mai 1997 15:40
    A : [email protected]
    Objet : Setting initial DropList selection
    Does anyone know how to set the initially displayed selection of a DropList
    to
    something other than the first element of the array.
    <DropList>.IndexValue is supposed to be settable according to the
    documentation, but it doesn't seem to be so.
    Gary Dale
    Willis Corroon

  • Setting initial DropList selection

    Does anyone know how to set the initially displayed selection of a DropList to
    something other than the first element of the array.
    <DropList>.IndexValue is supposed to be settable according to the
    documentation, but it doesn't seem to be so.
    Gary Dale
    Willis Corroon

    Hi Gary !
    If setting <DropList>.IndexValue doesn't work, I suppose you set it
    before invoking the Self.Open() method of your UserWindow.
    Try to set the IndexValue attribute of your DropList after invoking the
    Self.Open() method. I think it will work.
    Hope this helps !
    - Manuel -
    Manuel DEVEAUX
    Fort&eacute; Developer
    Mutuelle Pr&eacute;viade
    Nancy, FRANCE
    E-Mail : [email protected]
    De : GARY DALE +44 (0)1473-222466[SMTP:[email protected]]
    Date : mardi 13 mai 1997 15:40
    A : [email protected]
    Objet : Setting initial DropList selection
    Does anyone know how to set the initially displayed selection of a DropList
    to
    something other than the first element of the array.
    <DropList>.IndexValue is supposed to be settable according to the
    documentation, but it doesn't seem to be so.
    Gary Dale
    Willis Corroon

  • HT1399 can anyone tell me how to change all the songs in my I-Tunes Library to the Graphic Equilizer setting of Bass Boost, without clicking on every single song individually to change them ?  thanks.

    Can anyone tell me how to change all the songs in my I Tunes Library to the Graphic Equilizer Setting of Bass Boost, without having to change each song individually?  Thank U.       [email protected]

    Hello guinness guzzler,
    You can set the equalizer from the View menu, which will affect any songs played in iTunes.
    iTunes 11 for Windows: Adjust the sound quality
    http://support.apple.com/kb/PH12334
    Cheers,
    Allen

  • Cursor is selecting without clicking.

    I have a Mac Book Pro (purchased last year June 2010).  If I leave the cursor on a clickable item/text (e.g., in a webpage) for a few seconds, it automatically "clicks" that item without me touching the trackpad.  Is there  a setting that needs to be adjusted or is this a problem?
    Thanks

    I have a Mac Book Pro (purchased last year June 2010).  If I leave the cursor on a clickable item/text (e.g., in a webpage) for a few seconds, it automatically "clicks" that item without me touching the trackpad.  Is there  a setting that needs to be adjusted or is this a problem?
    Thanks

  • My mum set up an iCloud account and forgot the password, and this caused me to create a new account. The new account works for the App Store and all that, but I can't change the initial iCloud account without the password. Help?

    My mum set up an iCloud account for my iPhone 4 but forgot the password. This caused me to create a new account, and it can be used for the App Store and iTunes and all that, but I can't change the initial iCloud account (the one my mum made). My device keeps prompting me for the password every few minutes after updating to iOS 8, and I've tried every option possible to retrieve the password, but I don't even know the answers to the security questions and I can't find the password reset email anywhere and I don't know the back up emails my mum used. I literally cannot find any legitimate way to sign out of the initial iCloud account without entering a password (which neither I nor my parents know). Is there a way for me to retreive the password or change to my new account without the password?

    See:Creating an iCloud account: Frequently Asked Questions and How do I mange iCloud account about 3/4s of the way down.

  • My iphone's memory is near capacity from photo albums sync'ed with my mac and I haven't found out how to delete select albums without wiping the iphone.  Any suggestions??

    my iphone's memory is near capacity from photo albums sync'ed with my mac and I haven't found out how to delete select albums to free up memory without wiping the iphone.  Any suggestions??

    You do the opposite of how you got them on your phone, you unsync the pics using iTunes.

  • HT2477 How do I select multiple images without clicking on each one? Is there a way to select duplicate photos to delete them?

    How do I select multiple images without clicking on each one? Is there a way to select duplicate photos to delete them?

    Consider adding the delete symbol to the Finder window tool bar.  This way you can highlight all the photos you want to delete at the same time then hit the "delete" symbol.
    Open a Finder window/View/Customize Toolbar - follow the directions in the customized pop down window.

  • HELP! When I drag the graphics pen, it selects objects without clicking

    Having a number of problems: the graphics pen selects objects without clicking them and "slides", the machine is beachballing for long periods and applications keep quitting unexpectedly. Please help!!!!

    Welcome to the forums Monad!
    A handicap we all share here is that we are not clairvoyant!
    You give us too little to go on:
    Which G5 do you have?
    What operating system?
    What graphics pen?
    What applications are quitting?
    When did the 'beachballing start'?

  • Hi, I was about to reset my iphone3g when I accidentally selected erase all contents and setting. It was stucked with the iphone logo, so i tried to fix it by restoring all my datas in iTunes. I was able to successfully fix it but when I inserted my sim c

    hi, I was about to reset my iphone3g when I accidentally selected erase all contents and setting. It was stucked with the iphone logo, so i tried to fix it by restoring all my datas in iTunes. I was able to successfully fix it but when I inserted my sim card it says that simcard not recognized. I tried all the solutions in the net but nothing seemed to work. What should I do? I'm located here in the Philippines. I hope you could help. Thanks! 

    I know. I was with my brother when we did this. He didnt clearly understood the question that poped-up. Regarding the simcard, after successfully restoring it on itunes my simcard won't work. I'm not able to send and receive calls and messages.
    hi, I was about to reset my iphone3g when I accidentally selected erase all contents and setting. It was stucked with the iphone logo, so i tried to fix it by restoring all my datas in iTunes. I was able to successfully fix it but when I inserted my sim c 

  • I'm trying to set up Passbook on my wife's Iphone 4. When I click it it tells me that it can't connect to iTunes, but click on itunes, up it comes. Using iOS 6.

    I'm trying to set up Passbook on my wife's Iphone 4. When I click it it tells me that it can't connect to iTunes, but click on itunes, up it comes. Using iOS 6.

    Go to Settings>General> Time & Date.  Turn automatic time and date off and set it 1 year ahead.  Access passbook and then tap App Store.  Should get about 7 apps that come up that are available to utilize passbook.  Go back into time and date and set it back to automatic.  Should be good to go from there.

  • Setting always changes by itself in my iPhone 5s, also every few calls I have to face a problem with a call without sound

    Setting always changes by itself in my iPhone 5s, also every few calls I have to face a problem with a call without sound, battery becomes empty quickly

    User troubleshooting steps as outlined in the manual are reset, restore, restore as new. Have you tried any of these?

  • There are hidden pages in the PDF form I have.  How can I see and print all without clicking on the

    I have hidden pages in the PDF form I'm using (but didn't create).  How can I see and print all the pages at once without clicking on the "next page" button.  In the initial view, there are four pages, but if I click the "next page" button, there are a total of 12 pages in this document.  This is three budget years, each year being 4 pages long.

    You're most likely dealing with a dynamic XFA form created in LiveCycle Designer. You can open it, click the button, and save it, and it will most likely be 12 pages when next opened, but it depends on how the form is set up. The ability to make edits to an XFA form in Acrobat is very limited, especially for dynamic forms, so things like flattening aren't possible.
    If it's not an XFA form, you'd still need to click the button at least once and save. To say for sure what's possible, I'd need to see the document. Can you post it somewhere?

  • My friend has an iphone with no data plan, how do i send sms messages without my own iphone trying to send an imessage

    i have an iphone5 with a data plan, my friend has an iphone5 with no data plan, 
    how do i send sms messages to him without my own iphone trying to send an imessage
    im sure we can tap on the message and select "send as text or sms"
    but is there a setting that says 'if recipient has no data, then send as text' - so its more automated
    almost like the setting that says 'if i have no data then send sms'.

    I have an iPhone 5s with a data plan but I have iMessage turned off. Everyone I know with an iPhone has no problem sending me texts and they automatically go out as sms. If your friend doesn't want others to send messages via iMessage even when he has wi-fi access he can turn iMessage off in Settings > Messages.  If that doesn't resolve the issue see the quote below from (ignore the non-Apple phone references): Can’t receive text messages on a non-Apple phone
    If you don't have access to your iPhone, or if you can't deactivate iMessage from your iPhone, please contact Apple Support. Support for this issue is free.

  • How to get the value from a cell in jTable without click "enter" or "tab"

    Hi guys,
    I have a simple question. I have a jTable in my screen and when editing a value, but without click "enter" or "tab" I want to get the new value. I have a button update and after editing the value I click the button "update" and I want the new value to be store in my table. If try to get the selected value it is giving the old value. How can I implement this? Any idea? I hope I was clear.
    Thanks

    [Table Stop Editing|http://www.camick.com/java/blog.html?name=table-stop-editing]

Maybe you are looking for

  • Downloads from iTunes are not going into my library

    When I download songs and podcasts from iTunes on my iPhone they seem to download fine but they do not go into my library. Any ideas? All software is up to date.

  • Opinion on utilizing/storing/managing excess music

    Hi - hopefully this is in the right area. I tried to search, but did not find anything relevant to my issue. I have a 4G 20GB iPod and currently have 27GB of music in iTunes. As my immediate collection grows, it's a constant challenge to uncheck 'vic

  • Wondering if my dvd writer is the good one

    I got a Presario SR1234nx desktop and it's indicate that in it there's a DVD writer Lite-on dvddrw sohw 832S double layer but on my computer it doesn't accept 8.5 GB. Is there a manner to find if I've got a really lite-on drive without opening my com

  • Consolidation Import failed

    Hi, I am trying to import my release on consolidation tab in CMS but the returned state is 'Import failed'. The error log is generated in step 'Repository-import'. The log is: Info:Starting Step Repository-import at 2007-05-21 08:35:13.0024 +7:00 Inf

  • Small Suggestion to Improve Installer

    I have just installed Arch 2007.08 (Don't Panic - I LOVE that name!  ... derived from Hitchhiker's Guide to the Galaxy I hope!). The install went smoothly and all is running well (with the exception of an Opera plugin issue I have noted in another po