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 8581831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:08:46+00:00 2026-06-11T21:08:46+00:00

I have a ViewController for my app which has a single button which, when

  • 0

I have a ViewController for my app which has a single button which, when clicked, I need to show a popup view to allow the user to select from a list of addresses.

I’ve implemented the ViewController as follows:

@interface WelcomeViewController : UIViewController<UIPickerViewDelegate, UIPickerViewDataSource, UIPopoverControllerDelegate>

And I’ve implemented the necessary delegate functions for the picker. I see the popup appear and display the UIPickerView inside it with the addresses correctly populated. The popup also disappears when I pick outside its frame – so that part appears to be working right.

However the picker just does not respond to picks (it does nothing!) – and in the debugger I see that didSelectRow is not getting called.

I have tried everything I can think of! Any help and advice would be appreciated!

9/24 UPDATE:
I got this working but had to sacrifice using the Popover ViewController so it is not an ideal solution. I did it as follows:

  1. Created a UIPickerView for the addresses and added it as a subview of WelcomeViewController
  2. Implemented the following UIPickerViewDelegate functions in WelcomeViewController – numberOfComponentsInPickerView, numberOfRowsInComponent, didSelectRow, titleforRow and also set the delegate and datasource properties of the pickerview to self (ie the WelcomeViewController)

This works now, the downside of this implementation is that the address picker does not disappear when I pick outside the pickerview’s frame (I imagine this is because it is not inside a popoverviewcontroller) I worked around this by setting the hide property on the pickerview when the user performs the next action. I have read about a better workaround in Stackoverflow where the entire background was a part of one big button – and I may resort to that if I cant find a way to get the picker inside a popup)

  • 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-06-11T21:08:48+00:00Added an answer on June 11, 2026 at 9:08 pm

    If you have not already you also set the picker delegate property to be your instance of WelcomeViewController

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

Sidebar

Related Questions

I have an app which has split view inside a tab bar, and these
Let's say we have an app which has a lot of view controllers and
I have a ViewController class that has a property that is the model which
I have an app that has two viewcontrollers Viewcontroller and OptionsViewController. Viewcontroller is the
I have an app which has a UINavigationController, which has a couple of UIViewControllers.
I have an App with a Tab Controller, which has obviously a certain number
I have an AppDelegate which has 3 views. I add all three [window addSubview:gameViewController.view];
My app delegate has a RootViewController *viewController; and the app launches with this view.
i have created a project which has different xib viewcontrollers.In first view am selecting
I'm implementing a simple app with storyboard which has a button from a normal

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.