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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:29:01+00:00 2026-05-31T23:29:01+00:00

I got some issue working with UINavigationalControllers for iPad. Issue : UINavigationController1 UINavigationController2 Placed

  • 0

I got some issue working with UINavigationalControllers for iPad.

Issue :

UINavigationController1
UINavigationController2

Placed in UIViewController.

When the event happened in UINavigationController1….the action should be taken in UINavigationController2

Something like this….. When Click happened on UITableViewCell in UINavigationController1, the transition between view should be done in UINavigationController2

Need some suggestion how to handle this …

Thanks in advance

  • 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-31T23:29:02+00:00Added an answer on May 31, 2026 at 11:29 pm

    You should use delegation to do this

    add this in the .h of ViewController1 above the @implementation

    @protocol ViewController1Delegate;
    

    and then this below the @end

    @protocol ViewController1Delegate <NSObject>
    
    - (void)viewController1:(id)controller didDoAction;
    
    @end
    

    then declare a property of type ViewController1Delegate in the controller

    @property (nonatomic, assign) id <ViewController1Delegate> delegate;
    

    then add this to the .m of ViewController1

    @synthesize delegate;
    

    and on the action call the delegate method

    if ([self.delegate respondsToSelector:@selector(viewController1:didDoAction)]) {
        [self.delegate performSelector:@selector(viewController1:didDoAction) withObject:self];
    }
    

    Now when on ViewController2 .h impot ViewController1.h

    #import ViewController1.h
    

    Now when on ViewController2 .h listen for the delegate like this

    @interface ViewController2 : UIViewController <ViewController1Delegate>
    

    and then in the .m implement the method

    - (void)viewController1:controller didDoAction
    {
      //implement
    }
    

    when the view controllers are instantiated one needs to set the delegate for viewController1 to viewController2 like this

    viewController1 = [ViewController1 new];
    viewController2 = [ViewController2 new];
    viewController1.delegate = viewController2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello folks, I've got the issue to add a browser event to some input
I got stumbled upon this issue once and I guess I need some expertise
I've got some CSS and HTML that I'm working on, I wanted to sub
I've been banging my head off an issue for some time now. I'm working
I see there are some people that got Amazon’s payment module working w/ Magento
I've got a data issue with some values stored in an XML column in
I try to do static class, add to icollection but i got some issues
Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264)
got some problems deploying a java web application on jboss 7.1... Stepped through the
I got some weird error with response.redirect() and the project wasn't building at all..

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.