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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:21:20+00:00 2026-06-03T06:21:20+00:00

First of all, I would like to say that I’m just beginning learning objective-c.

  • 0

First of all, I would like to say that I’m just beginning “learning” objective-c. Sorry if I’ve done big mistake

Im trying to delegate -(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row
inComponent:(NSInteger)component
from view 2 to view 1…

View 1.h:

@interface ViewController : UIViewController <PopOverViewControllerDelegate>

View 1.m:

-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row
  inComponent:(NSInteger)component{ //stuff here}

View 2.h:

@protocol PopOverViewControllerDelegate <NSObject, UIPickerViewDelegate>
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row
  inComponent:(NSInteger)component;
@end

@interface PopOverViewController : UIViewController <UIPickerViewDataSource>

View 2.m:

-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row
  inComponent:(NSInteger)component{

[self.delegate pickerView:categoryPicker didSelectRow:row inComponent:component];

}

It does not work…

  • 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-03T06:21:21+00:00Added an answer on June 3, 2026 at 6:21 am
    1. It’s a little strange for a view to be a delegate of another view. Views really shouldn’t know much about data — it’s the controller that usually makes the kinds of decisions that are required of a delegate.

    2. Instead of having one delegate (View1) pass the picker’s delegate messages on to another delegate (View2), why not just make View2 the picker’s delegate? It seems like you’re making things more complicated than they need to be.

    3. Please tell us more about the problem than “it does not work.” If it worked, you wouldn’t be asking in the first place. Tell us how it doesn’t work. Does the method in View2 ever get called? If yes, then what’s the problem? If no, why not? What happens in View1 that causes it not to call View2?

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

Sidebar

Related Questions

First of all, I would like to say that I have used the search
First of all i would like to say that i dont know little bit
First off, I would like to say that I am just starting with PHP
first of all i would like to say i know its probably an easy
Let's say that I have string: -dog--cat--d-- I would like to find all words
First I would like to say that I've been programming JavaScript for about 3
The first thing i would like to say is that this is not exactly
First of all, I want to say sorry for this very big question, but
First of all, let me just say that I'm using the PHP framework Yii,
First off I would like to say, that I am not trying to hack

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.