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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:10:26+00:00 2026-06-11T11:10:26+00:00

In my application I am using storyboards, this is how it’s set up: UIViewController

  • 0

In my application I am using storyboards, this is how it’s set up:

UIViewController ->pushing to -> UIViewController ->pushing to -> UIViewController

I have it all working but I can’t figure out how I do the delegate between the firstViewController and the thirdViewController. I have looked at how it would normally be done with storyboards (setting the destinationView delegate) but I somehow need to set the thirdViewControllers delegate not the second one. Because there is the ViewController in-between, I don’t know how this is done. Any responces are appreciated.Thank You 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-06-11T11:10:27+00:00Added an answer on June 11, 2026 at 11:10 am

    Do you mean that you’d like the VC1 to be the delegate of VC2 and VC3?

    In VC1 prepareForSegue, you can do as you suggest:

    VC2 *myVC2 = segue.destinationViewController;
    myVC2.delegate = self;
    

    In VC2 prepareForSegue, you can also do as you suggest, only indirectly:

    VC3 *myVC3 = segue.destinationViewController;
    myV3.delegate = self.delegate;
    

    The headers will look like this:

    VC1.h

    @protocol VC23Delegate <NSObject>
    - (void)doSomethingForVC2;
    - (void)doSomethingForVC3;
    @end
    

    VC2.h

    @protocol VC23Delegate;
    @property(weak,nonatomic) id<VC23Delegate> delegate;
    

    VC3.h

    @property(weak,nonatomic) id<VC23Delegate> delegate;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iOS 5 Tabbed Application, using Storyboards. My Tabbar Controller points to
I'm working on an iPhone application. I'm using Storyboard. I wanted to have one
I read several answers to this question but couldn't figure out how to do
I have been using the storyboard to make an application and currently there are
I creating a web application using JSF,Hibernate,Spring. I have added a filter for checking
I am developing a storyboard-based application, using XCode 4.2. I'm new to storyboards, before
In my application I have 2 separate ways to get to the same UIViewController,
I'm creating an iPad application that supports ONLY LANDSDCAPE mode. I'm using storyboards. Even
I have an ios5 app developed using storyboards that currently displays a tab bar
Using storyboards you have no easy access to the first view controller in appDelegate

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.