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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:16:04+00:00 2026-05-25T23:16:04+00:00

I am moving from theory to some practice. I’ve downloaded from Apple site a

  • 0

I am moving from theory to some practice. I’ve downloaded from Apple site a couple of sample codes. The first app is TableViewSuite from

https://developer.apple.com/library/ios/#samplecode/TableViewSuite/Introduction/Intro.html

Looks nice and attractive. The most thing I like is mastering .nib file programmatically. I tried to repeat this app, but oh Dear, what kind of project to choose?

  1. Navigation-Based Application
  2. View-Based Application

or

  1. Window-Based Application?

First I tried Window-Based Application cos it promises

This template provides a starting point for any application. It provides just an application delegate and a window.

Sounds good. Just window and delegate, but when I started to write code I’ve faced such dilemma. In Apple’s code, the first thing I have to implement for exposing nib file with table view is

- (void)applicationDidFinishLaunching:(UIApplication *)application {

/*
 Create and configure the navigation and view controllers.
 */ 

RootViewController *rootViewController = [[RootViewController alloc] initWithStyle:UITableViewStylePlain];

// Retrieve the array of known time zone names, then sort the array and pass it to the root view controller.
NSArray *timeZones = [NSTimeZone knownTimeZoneNames];
rootViewController.timeZoneNames = [timeZones sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];

UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
self.navigationController = aNavigationController;
[aNavigationController release];
[rootViewController release];

// Configure and display the window.
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];

}

This method is clear for me. I mean it’s clear for me what it does. In my app this method is implemented in quite different way.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

It returns BOOL instead of returning void and doesn’t get (UIApplication *)application parameter and I can’t initialize RootViewController with style.

So, what kind of project should I choose? Please help me with your advice. Thanx in advance.

  • 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-25T23:16:04+00:00Added an answer on May 25, 2026 at 11:16 pm

    Hey nathan both these method does the same.
    And if you are missing application instance then you can create it using [UIApplication sharedApplication] as this is a singleton and will return the same instance every time.
    If you are new to iPhone then go for View Based first then go for Navigation based app and then finally for window based application.

    And about the two method above
    - (void)applicationDidFinishLaunching:(UIApplication *)application
    method is used in earlier versions of iOS to initialize the application and prepare it to run. In iOS 3.0 and later, you should use the
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions instead.

    These are the lines straight from apple’s docs you can check here

    The difference between these two method is that when your applicaion is launched due to local/push notification the the method - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions is called and a dictionary is passed as launch option. So use this one instead of other.

    And about the above downloaded code it is a navigation based application.

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

Sidebar

Related Questions

Im moving from django to pylons, is there an admin app?
Again I'm moving from Xcode 3 to 4 and finding that some things are
I'm moving from Air/Actionscript to WebWorks and having some difficulty. I've tried several Phonegap
I'm moving from C to Java now and I was following some tutorials regarding
I am moving from SQL to Linq and I need some help. I am
I am moving from an old php based site to a new one based
I'm moving from Textmate to vim (with janus) and want to exclude some directories
I'm moving from Capistrano to Chef to deploy a Rails app (with deploy_revision ),
As I am moving from C# to Python, I was wondering if there is
I'm moving from adobe flex to ext js 4, and I noted that in

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.