Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 540263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:13:20+00:00 2026-05-13T10:13:20+00:00

I have a picker with three components. The first two components are dependent on

  • 0

I have a picker with three components.

The first two components are dependent on the last.

So it could be:

  1. | 5 | M (The lines represent the different columns)
    or
    1″ | 5″ | FT

If I am moving the second or first column and before they stop spinning I move the third column from from FT to M or visa versa and then while that is still moving it crashes the app.

I know this is happening because in pickerView:didSelectRow:inComponent: delegate method for the UIPicker I am performing a calculation based on the final value of the third column i.e M or FT.

SO, IN A NUTSHELL

It is performing the pickerView:didSelectRow:inComponent: on the third column before the first column even though the users touched them in the opposite order.

Is there any way to resolve this?

Possibly make it so that if a component is still spinning the user is unable to move another component?

Any help is highly appreciated

Thanks

Tom

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:13:21+00:00Added an answer on May 13, 2026 at 10:13 am

    I think that while a component is spinning it has no selected value so it never calls pickerView:didSelectRow:inComponent: Once it does stop spinning it does send the message to the delegate. The first component to stop spinning sends first, not the first component touched. This is why your third column calls the method before the first two even though it is touched last.

    I suspect the crash is caused by trying to perform an operation using the nil selected row value of a moving component. If so, you can avoid the crash by testing that each components selected value is not nil before performing the operation. If the components are still spinning then you should skip the operation until they stop.

    I don’t think it is possible freeze components.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dependent UIPicker that loads the values into its two components from
I have a custom UIPickerView with three components that are dependent on one another
I have three UITextFields inside of a UITableView (3 separate rows). The first two
I have picker controls on a single view with two outlets for each. When
I am trying to implement a leap-year dropdown DOB picker. So I have three
I have a UITabBar application, which has three tabs. The first tab has a
I know you can have multiple components in a picker view but is there
I have a picker that saves my image in NSDocumentDirectory , here: for (int
I have a picker view that has a list of numbers to pick from.
I have a contact picker list with chckboxes of the contacts that have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.