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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:50:08+00:00 2026-06-12T02:50:08+00:00

I have one page(say X) before tab bar controller that use model segue to

  • 0

I have one page(say X) before tab bar controller that use model segue to open tab bar controller. Also first screen of tab bar controller is same with X.

I want to pass data from X to tab bar controller’s first page.

Shortly, I want to pass data from view controller to tab bar controller page with storyboard segue. Is there any method for this ?

Here is the solution ;

    locationsHome* vc = [[locationsHome alloc] init];
    UITabBarController* tbc = [segue destinationViewController];
    vc = (locationsHome *)[[tbc customizableViewControllers] objectAtIndex:0];
  • 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-12T02:50:09+00:00Added an answer on June 12, 2026 at 2:50 am

    This is how I solved my problem. You can pass data from ViewController to TabBarController with this method.

    Use this code within prepareForSegue method

    locationsHome* vc = [[locationsHome alloc] init];
    UITabBarController* tbc = [segue destinationViewController];
    vc = (locationsHome *)[[tbc customizableViewControllers] objectAtIndex:0];
    

    Like this:

    -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
    
        NSString * segueIdentifier = [segue identifier];
        if([segueIdentifier isEqualToString:@"tabbarGo"]){
    
            locationsHome* vc = [[locationsHome alloc] init];
            UITabBarController* tbc = [segue destinationViewController];
            vc = (locationsHome *)[[tbc customizableViewControllers] objectAtIndex:0];
    
            etc...
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say I have a site that has one page that handles all requests
Lets say we have an average of one page fault every 20,000,000 instructions, a
i am porting over a website from asp. i have one page that i
I have built a Twitter client that's only one page: index.html. When being used,
I can honestly say I've never encountered this one before: I have two .ascx
I have one Page which is displaying details of some Client. I am using
I have one page with a Silverlight object on it, and many times when
I have one page website only using HTML, CSS and JavaScript. I want to
In my project I have one table with 24*6*300 cells on one page (it's
I'm doing an asp.net application with one page. In this page, I have one

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.