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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:48:10+00:00 2026-06-17T15:48:10+00:00

I am attempting to pass data between two view controllers via tabBar. VC1 =

  • 0

I am attempting to pass data between two view controllers via tabBar.

VC1 = search controller. 

Search using a string, obtain array of results.

It is located on tab 1.

It has a navigation controller, and VC1 is the root.

VC2 = Results controller.

Display results from VC1.

It is located on tab 2.

It has a navigation controller and VC2 as root.

(each tab has this architecture, Nav Controller = then a VC as the root).

I was previously using protocol and delegates in the prepare for segue (great but not using tabs).

So I now have a segue from a button in VC1 (to load the results in VC2) to the tab bar.

I am attempting to pass the info using prepareForSegue, and then adding the code below in this method

(after identifying the correct segue).

However app crashes, and I’m not sure I’m doing this correctly.

ResultsIndexViewController* vc = [[ResultsIndexViewController alloc] init];
UITabBarController* tbc = [segue destinationViewController];
vc = (ResultsIndexViewController *)[[tbc customizableViewControllers] objectAtIndex:1];
vc.SearchDelegate=self;//crash here (normally works if using regular segue)
vc.resultsArray = _temporaryResultsArray;
vc.originalQuery=_queryArray;
  • 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-17T15:48:12+00:00Added an answer on June 17, 2026 at 3:48 pm

    I ended up not using this code. Instead I used the delegate created by the tabbar to get information. I am posting the steps in a separate question, which I will link below

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

Sidebar

Related Questions

Summary: When attempting to use marshalling to pass string data into a C++ DLL
I've been attempting to write a two-pass GPU implementation of the Marching Cubes algorithm,
I am using SecKeyEncrypt with a JSON formatted string as input. If pass SecKeyEncrypt
I'm attempting to pass a key via the $_SERVER['HTTP_REFERER'] (set via cURL) from one
I'm attempting to pass variables between forms and unfortunately i'm not managing in my
I am attempting to post form data to my app using Facebook. My form
i have two views with view1 calling view2. i need to pass data from
I am attempting to pass in a connection string to an SqlConnectionStringBuilder object, but
I am attempting to call a RESTful service using an HttpWebRequest object via POST.
In this code I'm attempting to pass an array from one tab view 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.