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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:46:50+00:00 2026-06-15T19:46:50+00:00

I am having an issue when I am pushing to a UIViewController by code

  • 0

I am having an issue when I am pushing to a UIViewController by code from another UIViewController which has the same UINavigationController.

Notes & assumptions:

  1. I created all my UIViewControllers using IB but want to push between them using code.
  2. Both UIViewControllers contain UITableViews: The first to select search criteria & the second to display the results.
  3. “LT” stands for League Table in my class names.

I have three classes in my UINavigation Controller:

  1. LTMasterNavController – of type UINavigationController – owns the properties & results across all the subsequent view controllers. LTResultsViewController retrieved the results from here once LTOverviewViewController has generated them.
  2. LTOverviewViewController – of type UIViewController containing a UITableView. Used to select the filters to be displayed in LTResultsViewController.
  3. LTResultsViewController – of type UIViewControllercontaining a UITableView. Used to display the results from the LTOverviewViewController

Please find my code on the Dropbox link below:
https://www.dropbox.com/sh/9m37y4f1gws99lf/VGNloaLSVO

When the “Show League Table” button is pushed in LTOverviewViewController I want the program to get the results from the filters & then immediately push to the LTResultsViewController.

With this code it pushes to the LTResultsViewController however the view appears to contain nothing. It is black with no UITable View & you cannot select anything.

In testing/debugging I created another button in LTOverviewViewController called “Push to Results” and connected it to LTResultsViewController as a push action in IB. It worked perfectly then when pushing the “Show League Table” button and then the “Push to Results” button, however I want it to happen without user having push that second button. Been stuck on this for days now so any help would be greatly appreciated!

Many thanks,
James

  • 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-15T19:46:51+00:00Added an answer on June 15, 2026 at 7:46 pm

    With storyboards and segues this is fairly simple. In the storyboard, click on the connection between the UIViewController you want to transfer data between, I guess between LTOverviewViewController and LTResultsViewController, and give the segue an identifier name: say ResultsSegue.

    Now, in the LTOverViewController, you need to implement this method:

    - (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    

    In this method you will identify the segue name and the destinationViewController and pass the data you want the new view controller to have. Here is an example:

    - (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    {
        if ([[segue identifier] isEqualToString:@"ResultsSegue"])
        {
            LTResultsViewController *viewController = [segue destinationViewController];
            [viewController setData:self.data];
        }
    }
    

    When the storyboard wants to use this particular segue, this method will be called and executed before moving on to the new viewController.

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

Sidebar

Related Questions

I'm having an issue pushing my code through into the parent window. It's currently
I am having an issue pushing my view controller from a tableview that was
I am having issue in checking which input has been clicked using unobstructive javascript.
I'm having an issue with some asynchronous JavaScript code that fetches values from a
Hi guys I am having issue I have this query: SELECT * FROM useraccount
I am having issue connecting from ROR 3.2 to Oracle database. irb(main):001:0> gem 'ruby-oci8',
I am having issue when sending data from Service to Activity through Notification ,
Having issue with displaying the Data from a second Activity. when I run the
Im having issue with mail sending In web.config file <mailSettings> <smtp from=xxxx@companyname.com> <network host=mail.authsmtp.com
I am having issue in compiling code having templated classes nested within other templated

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.