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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:58:28+00:00 2026-06-06T18:58:28+00:00

I passed string from controllerA (second item in tab bar) to controllerB (first item

  • 0

I passed string from controllerA (second item in tab bar) to controllerB (first item in tab bar), added that string to array and want to display it. I called reloadData but table view is still empty. What I have to do to get my string displayed in controllerB? (this two controllers are connected to two different navigation controllers and I don’t want to use seque).

here is some code:
//ControllerA

ControllerB *bController = [[ControllerB alloc]init];
bController.myString = self.cellLabel.text;
[tableController addButtonIsPressed];

//ControllerB.h
@property (copy, readwrite) NSString *myString;

//ControllerB.m

-(void)addButtonIsPressed {

[myData addObject:@"myString"]; //in NSLog I can see correct value of myString
[self.tableView reloadData];

}

Now I realized then When I print myData in console it is null. Even if i initialize myData with values in viewDidLoad in this method its (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-06-06T18:58:29+00:00Added an answer on June 6, 2026 at 6:58 pm

    We need more information but the problem might be here :

    ControllerB *bController = [[ControllerB alloc]init];
    

    You declare another Controller maybe it’s not the same controller who’s display.
    Cause i don’t see any : [self displayModal ….]
    You juste create a B controller with the correct “mystring” but you’re displaying another B controller.

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

Sidebar

Related Questions

I have a string that I want passed via the linebreaks filter. {% trans
is it possible to read the contents of an array that is passed from
The string passed to my custom function is the following: SELECT key FROM ubis
I'm attempting to build a method call from strings that have been passed into
If I am writing an API that takes an int parsed from a string,
I need to clean a string that comes (copy/pasted) from various Microsoft Office suite
The docs about openssl_sign() say that the signature is returned in the passed string
I have a JS function which is passed a string that a RegEx is
I have been passed a date string that looks like this: Thu%20Mar%2011%202010%2015%3A09%3A11%20GMT%2B0000%20(BST) I want
I want to pass parameter (a String value) to spring controller from a jsp

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.