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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:15:01+00:00 2026-06-12T16:15:01+00:00

I have a UITableViewController with a button that triggers a modal flip horizontal segue

  • 0

I have a UITableViewController with a button that triggers a modal flip horizontal segue animation to another UITableViewController. On the “flipside” I have a simple done button that dismisses the view if pressed. When dismissing the view I want to set the “test” string in MainTableViewController depending on what value the “test” string has in FlipsideViewController. I can’t get that connection working though. Posting my code below:

MainTableViewController.h

#import <UIKit/UIKit.h>

@interface MainTableViewController : UITableViewController

@property NSString *test;

@end

MainTableViewController.m

#import "MainTableViewController.h"

@interface MainTableViewController ()

@end

@implementation MainTableViewController

@synthesize test;

-(void)viewDidAppear:(BOOL)animated{

    NSLog(@"%@", test);

}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{return 1;}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{return 10;}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    static NSString *CellIdentifier = @"MainCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];

    return cell;

}

FlipsideTableViewController.h

#import <UIKit/UIKit.h>

#import "MainTableViewController.h"

@interface FlipsideTableViewController : UITableViewController

- (IBAction)done:(id)sender;

@end

FlipsideTableViewController.m

#import "FlipsideTableViewController.h"

@interface FlipsideTableViewController ()

@end

@implementation FlipsideTableViewController

- (IBAction)done:(id)sender{

    NSString *test = @"Hello!";
    // Push the test string to MainTableViewController

    [self dismissViewControllerAnimated:YES completion:nil];

}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{return 1;}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{return 10;}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    static NSString *CellIdentifier = @"FlipsideCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];

    return cell;

}

@end
  • 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-12T16:15:02+00:00Added an answer on June 12, 2026 at 4:15 pm

    Use delegate for backward passing of data

    Refer simple-delegate-tutorial-for-ios-development link.

    Also refer basic-delegate-example link too.

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

Sidebar

Related Questions

I have a simple UITableViewController in a UINavigationController that displays a list of strings
I have a simple UITableviewController that used to work fine and now something has
I have a UITableviewController and I push another UIViewController in 'didSelectRow..' method. I have
I have a UITableViewController that displays cells that are just default. Each cell can
I have a typical UITableViewController set of views. On all views is a button,
I have a UITableViewController that I have specified as a UISearchBarDelegate. Up until now,
I have a UITableViewController (called Details). In that tableView on row 1 I have
I have a UITableViewController that has custom cells that I have customized with my
I have a UITableViewController that uses didSelectRowAtIndexPath: to init a view controller with initWithNibName:
I have a subclassed UITableViewController that performs some animations when editing mode is entered,

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.