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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:48:18+00:00 2026-05-23T15:48:18+00:00

Inside a UIViewController class, I have a tableView who gets called like this by

  • 0

Inside a UIViewController class, I have a tableView who gets called like this by clicking on a navBar button:

-(IBAction) addButtonPressed:(id)sender {
    CreateQuestionController *createQuestionViewController = [[CreateQuestionController alloc] initWithNibName:@"CreateQuestionController" bundle:nil];
    [self.navigationController pushViewController:createQuestionViewController animated:YES];
    [createQuestionViewController release];
}

This method gets called nowhere else in my code. Well, when I click this navBar button and the view shows up I find out that the ViewDidLoad method gets called twice (which is normal in this case) BUT the data I enter here gets lost. Here’s my code:

- (void)viewDidLoad
{
    [super viewDidLoad];    
    textView.text=@"Type your question here";
    NSLog(@"Question text:%@", textView.text);
}

Log:

2011-07-11 10:56:35.727 HelpMe[1343:207] Question text:Type your question here
2011-07-11 10:56:35.728 HelpMe[1343:207] Question text:(null)

What’s going on?
Thank you

Edit:
Other symptoms:
– Cannot push another view
– Cannot change the image of a button

  • 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-23T15:48:19+00:00Added an answer on May 23, 2026 at 3:48 pm

    My problem was in my nib file. I deleted my controller and assigned all my outlets to the File’s owner

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

Sidebar

Related Questions

I have a UIViewController (which sits inside a tabUIController). Within this UIViewController, I want
I have a UIViewController inside of a navigation based app. I'd like the view
I have an application with 5 UIViewController s each inside a corresponding UINavigationController ,
Inside VS2005, our whole programming staff gets this error message sporadically and it is
I have my app on iPhone with a UIViewController with some stuff inside.. image,
I have a UITableView with 3 sections inside of a UIViewController. Is it possible
im trying to programatically do a UITabBarController using a UINavigationController inside each UIViewController called
I have a UIViewController called LoginViewController. The UIViewController has two UITextField, username and password.
I have an custom UIVIewController that is the base class for other controllers and
I have a class that implements UIView and inside - (void)drawRect:(CGRect)rect method I add

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.