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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:34:30+00:00 2026-06-15T00:34:30+00:00

I have a ViewController that houses 2 Containers (one top, one bottom). Top Container

  • 0

I have a ViewController that houses 2 Containers (one top, one bottom). Top Container houses a ViewController with a button and a textfield (just for illustrating purposes). What I want to do is:

  1. Type text
  2. Press button
  3. Send text to bottomViewController
  4. Display into table

How do I send text to the bottomViewController? Do I somehow have to talk to the parent?

I’m using Storyboards so I have this in the parentViewController

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    NSLog(@"Current Segue: %@", segue.identifier);
    if ([segue.identifier isEqualToString:@"topSegue"]) {
        self.enterCommentViewController = segue.destinationViewController;
    }
    else if ([segue.identifier isEqualToString:@"bottomSegue"]) {
        self.commentsViewController = segue.destinationViewController;
    }
}
  • 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-15T00:34:31+00:00Added an answer on June 15, 2026 at 12:34 am

    You don’t use embed segues like that. The 2 controllers are instantiated at the same time as the parent controller. You can get a reference to these 2 child controllers from the parent controller’s childViewControllers property. You should log childViewControllers to see which member of the array is which controller, and then you can just refer to those controllers as self.childViewControllers[0], and self.childViewControllers[1].

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

Sidebar

Related Questions

I want to have a ViewController that has a table view on the top
I have 2 viewcontroller and in that one controller having a button, now i
I have a view controller that houses a UIWebView. I want to display an
I have a viewController that autorotates just fine, The problem is that is I
I have created two viewController classes such that one is superclass of another.i have
I have just noticed that my ViewController does not call init (See below) when
I have a viewController that I want him to pop when I moving to
Here is my situation. I have ViewController class A with a button that goes
I have a viewController that has a tableView and a mapView, and only one
I have a ViewController that includes its own .nib file, I am wanting to

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.