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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:09:01+00:00 2026-05-28T20:09:01+00:00

In every iOS app there is an App Delegate class, meaning one of the

  • 0

In every iOS app there is an App Delegate class, meaning one of the classes in the app has to implement the delegate methods for the application events such as didFinishLaunching: and so forth. Usually the class name contains “AppDelegate”.

The App Delegate class is a subclass of UIApplicationDelegate on iOS or NSApplicationDelegate on the Mac.

class AppDelegate: UIApplicationDelegate {

}

Let’s say I want to implement the App Delegate methods in a different class than the original one Xcode created and named for me. How can I do that?

  • 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-28T20:09:02+00:00Added an answer on May 28, 2026 at 8:09 pm

    You can do the same by modifying the parameters to the UIApplicationMain function present in the main.m file:

    UIApplicationMain(argc,argv,nil,nil);
    

    The last parameter takes the name of the class which is implementing the UIApplicationDelegate protocol.

    So the default implementation looks something like:

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;
    

    After modifying it will be something like:

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([< Your class name will go here > class]));
    [pool release];
    return retVal;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Almost every ios app now has something like Feed option. Programming that usually includes
Basically, I want to have an app with only one view that has an
As Apple adds new APIs and new methods to APIs with every new iOS
It is important to make sure every iOS application submitted to the AppStore is
As described in the README for facebook-ios-sdk, my app calls Facebook#authorize:delegate: before performing any
I'm writing an iOS app that has a problem on a view that's about
I'm writing an iPhone app (which will be my first ios app) that has
I have an iOS app in which every time the view is loaded, all
A client has an iOS app that makes fairly heavy use of UiWebViews (with
I'm developing an iOS application that has recently grown a large C++ base. C++

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.