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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:30:24+00:00 2026-05-30T09:30:24+00:00

I’m trying to switch back from my UIViewController to my UITableViewController but apperendly it’s

  • 0

I’m trying to switch back from my UIViewController to my UITableViewController but apperendly it’s not working the way I want it to.
I did create my Interface with storyboards from the start, so I’m not really into moving from one View to another by code. Until now, I just pushed my Views per sergues which are easy to implement with storyboards. But when I tried moving back to my previous Views, a new ViewController will be implemented, so all my data I stored in the old one is “lost”.

Actually there is no code I could present you (because of the sergues) but the situation is:

->I got an MutableArray storing stuff in my UITableView.

->User taps the scan Button, scans a new Item which should be imported in my array.

->When trying to push back to my tableView there’s a new Controller awating me, unaware of the data I stored in the old one.

So how do I simply move back to my old Controller preventing to create a new one all the time?

Does a sergue-push always creates a new Controller?

(Question may be simple, but I’m new to this stuff. Tried some results presented by the search function, but none of them worked 🙁 )

/edit: Popback problem has been solved but array filling problem still exists. Code:

GeneralSettings *sharedGS = [GeneralSettings sharedInstance];
sharedGS.strEAN = [[NSString alloc] initWithString:strCheckString];
[sharedGS.listArray insertObject:strCheckString atIndex:0];
NSLog(@"Anzahl der EAN-Codes: %d\nErster Code: %@\n In Variable: %@", sharedGS.listArray.count, [sharedGS.listArray objectAtIndex:0],sharedGS.strEAN);

Data in sharedGS.strEAN (“83274572354” i.e.)
Data in listArray (null)

  • 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-05-30T09:30:25+00:00Added an answer on May 30, 2026 at 9:30 am

    You don’t push back. That creates a new instance of the previous controller class. You pop back. You can accomplish that 2 ways.

    1: In code put in the following statement when you want to return (pop) to you tablet view controller.

    [self.navigationController popViewControllerAnimated:YES];

    2: If you want to do it in storyboard you need to implement the following custom segue class:

    implementation

    //  PopSegue.m
    
    #import "PopSegue.h"
    
    @implementation PopSegue
    
    - (void) perform {
    
        UIViewController *src = (UIViewController *) self.sourceViewController;
    [src.navigationController popViewControllerAnimated:YES];
    }
    

    and header

    //  PopSegue.h
    
    #import <UIKit/UIKit.h>
    
    @interface PopSegue : UIStoryboardSegue
    
    @end
    

    Place this method in your UIViewController to set a property back to your UITableViewController:

    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    {
        if ([[segue identifier] isEqualToString:@"goBackToTableView"])  {
        [[segue destinationViewController] set{whatEverProperyYouWantTo}: {valueOfPropertyToSet}];
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from
I want to construct a data frame in an Rcpp function, but when I
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text

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.