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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:47:23+00:00 2026-06-08T12:47:23+00:00

I am new in Objective-C and iOS. I followed UINavigationController . In the first

  • 0

I am new in Objective-C and iOS. I followed UINavigationController.

In the first 2:30min off the video, He uses AppDelegate interface and implementation and There are some codes provided there which I don’t have in my application.

In the interface he has:

@Class ViewController;
...
@property(strong, nonatomic) ViewController *viewController;

which I don’t have.

And in the implementation of AppDelegate, before he start to define navigationViewController, he has some lines of codes in didFinishLaunchingWithOption like:

self.windows = [[UIWindows alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
self.windows.rootViewController = self.viewController;
[self.windows makeKeyAndVisible]
return YES;

I got warning on self.viewController.

but I just have:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    return YES;
}

To nix the NavigationViewController, he adds this line:

 UINavigationController *navigationViewController = [[UINavigationController alloc] initWithRootViewController:self.viewController
self.windows.rootViewController = navigationViewController;

When I added this code I faced an error (warning on self.viewController at the end).
When I run the project, it just show the navigation at the top, but the TableView that I created before, is disappeared.
Can you help me how can I fix this problem? My simulator is version 5.1.

  • 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-08T12:47:25+00:00Added an answer on June 8, 2026 at 12:47 pm

    I am assuming since this is Part 12 of his youtube series, he is building off previous code.

    Regardless, there are many ways to add the rootViewController to the window. (programmatically, via Storyboards, etc.)

    The simplest way to get a project setup which would match his tutorial would be:

    Create a new “Single View” Project in Xcode and DO NOT enable Storyboards.

    This will create a project with an AppDelegate, ViewController class and ViewController xib.

    (If you selected Universal app you will have 2 xib files)

    Open up the AppDelegate for this newly created project and it should very close to his screencast…

    Good luck!

    (note this was verified with XCode 4.3.3)

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

Sidebar

Related Questions

First, I'm new to iOS and Objective-C programming (I started a month ago). I'm
First, I am super-new to Objective-C/iOS development and, in fact, this question is for
I'm new to Objective-C and iOS development, but I was wondering if there was
I'm new to Objective-C world. What I have noticed while studying some iOS/Mac apps
First of all, I am a a very new Objective C/Cocoa iOS Developer but
I'm rather new to Objective-C and iOS development, and after having read some of
I'm new to objective-c and ios, but I'm coming along alright. Now I've run
I am new to iOS development. I've recently stumbled upon the new objective-c collection-literals
I am very new at iOS and objective-c development, so I am struggling with
I am new to iOS and Objective-C, I already know that in a class,

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.