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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:49:39+00:00 2026-05-24T10:49:39+00:00

I am seeing a strange app behaviour when I try to push some view

  • 0

I am seeing a strange app behaviour when I try to push some view controller from uitableviewcontroller subclass.

Let me explain it first. I have created main nib which is linked to rootViewController (appDelegate) that is inside navigationController. In that nib a have added a UITableView and a custom UITableViewController subclass News_TableViewController like it’s shown in the screenshot:

nib connections

When I try to execute the code bellow I get nothing:

My_WebView *webView = [[My_WebView alloc] initWithNibName:@"My_WebView" bundle:nil];
[self.navigationController pushViewController:webView animated:YES];

Then I checked self.navigationController object but i gives me NULL:

NSLog(@"OBJ: %@",self.navigationController);

How is that I am not geting the reference to the navigationController despite of my custom class actually lives under navigationController ?

Thanks

  • 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-24T10:49:40+00:00Added an answer on May 24, 2026 at 10:49 am

    As you’ve mentioned, News_TableViewController is a UITableViewController, hence a UIViewController. I think you did’nt initialize the navigationController! A recommended way is to init the navigationController in your appDelegate class’ delegate method as follows:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    RootViewController *rootViewController = [[RootViewController alloc]init];
    _navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
    self.window.rootViewController = self.navigationController;
    [self.window makeKeyAndVisible];
    return YES;
    }
    

    where RootViewController is the News_TableViewController class.

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

Sidebar

Related Questions

I'm seeing some very strange behaviour from the Apple Push Notification Servers when the
I'm implementing drag & drop from a ListBox, but I'm seeing some strange behaviour
I'm creating an iPad app and I'm seeing some strange behaviour. I'm loading texture
I'm seeing some strange behaviour with my Rails3 app. Note that I'm using the
I am seeing some strange behaviour testing for null value against a var type
I'm seeing something very very strange happening in a Flex app I'm maintaining. I've
I'm seeing strange behaviour when using PostgreSQL in a Hibernate/JPA environment with a single
Seeing some strange things; help is being solicited. I have a query, like so:
So I'm seeing some strange issues in ie8 with jquery, and assorted javascript files.
I am developing an OpenGL application and I am seeing some strange things happen.

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.