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

  • SEARCH
  • Home
  • 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 3788030
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:56:03+00:00 2026-05-19T11:56:03+00:00

I have a UIView which i am presenting to the user which contains a

  • 0

I have a UIView which i am presenting to the user which contains a UIPickerView to select between different values. When this view is shown, it is shown asynchronously and my method which opened the UIView has ending before getting any meaningful data from the UIPickerView.

Is there a way to present such controls modally while halting execution of the opening method so that i can test the results after they have been selected?

I’ve tried presenting the UIPickerView inside a UIView and UIAlertView and both are the same, my method returns before i’ve used the controls.

i’ve tried:

[self presentModalViewController:self.Picker animated:YES];

and still no joy.

  • 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-19T11:56:04+00:00Added an answer on May 19, 2026 at 11:56 am

    You definitely don’t want -presentModalViewController:Animated:. That method is intended to present UIViewControllers, and your Picker is a regular ol’ UIView. As for your specific question, the quick answer is “No”.

    What you’re going for here requires a slightly different design philosophy. Instead of having one method to both present the picker and get input from it as you desire, you’ll need 2 methods: one to present the picker, probably with UIView’s animation methods, and another to act on input from it.

    Specifically, by setting yourself as the delegate of the UIImagePicker, you can present it and be assured that later, at some undefined time in the future, the picker will tell you (via pickerView:didSelectRow:inComponent: delegate method) that it has selected an item. At this time, you can test the selected values and act accordingly. Take a look at the UIPickerViewDelegate Protocol Reference for details on the delegate methods.

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

Sidebar

Related Questions

I have created a small UIView which contains two UIButton s. The view responds
I have a UIControl (or UIView, doesn't matter which) and this is covered by
I have a UIView which contains some controls (e.g. buttons, labels, etc). I overlay
Hi I have a UIView which contains several buttons that are designed by others
I have a UIView in which I added a UITapGestureRecognizer . Inside that view
I have a UIView of which I want to know when the user is
I have a simple tableViewCell build in interface builder. It contains a UIView which
I have a UIView which contains lot of labels, buttons, textviews. But there is
I have a UIView which contains many items like UIScrollView. How can I specify
I have a zooming UIScrollView that contains a UIView which contains some custom UIViews

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.