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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:09:46+00:00 2026-05-22T12:09:46+00:00

Objective-c is pretty new to me so I may well be asking an absurdly

  • 0

Objective-c is pretty new to me so I may well be asking an absurdly simple question but having been looking over the web and in some books I’m a bit stumped to some degree. Quite probably due to my severe lack of knowledge with obj-c. So… any help with this one will be really handy…

All I want to do is get some simple info about the device the app is running on (using [UIDevice currentDevice]) on the app launch but before the main app view is loaded up. Simple stuff huh but in all honesty I have not got the idea quite how to do this! I then want whatever info I have to be availiable (In a variable? Not too sure if thats the correct term with obj-c) throughout the app and its views. Again, I don’t really have much of an idea how.

I come form a web dev background so this is very new to me to a large degree. So… yeah, any tips/pointers, help etc would be ridiculously useful!

Thanks in advance, sorry for my n00b question!

  • 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-22T12:09:47+00:00Added an answer on May 22, 2026 at 12:09 pm

    The place for this would probably be in your App Delegates -application:didFinishLaunchingWithOptions: method. This method gets called when your app finishes launching and is (generally) responsible for adding your main view to the application window. You can put the information into an instance variable of your app delegate. You can get a reference to your app delegate from anywhere in your program by calling [[UIApplication sharedApplication] delegate]. An example implementation might look something like this:

    // In MyAppDelegate.m
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
        //Get your information, potentially put it into an
        //instance variable of the App Delegate
    
        //Add the main view to the view hierarchy
        [self.window addSubview:viewController.view];
        [self.window makeKeyAndVisible];
    
        return YES;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a completely stupid question, but i'm pretty new at objective-C and
I'm pretty new to Objective-C, switching over from C++, so excuse my stupid question.
I'm pretty new to Objective-C. I've read through a similar question but I can't
I'm pretty new to Objective C but things are progressing well. However, I think
I'm still pretty new to Objective-C coding (as evidenced by this question) and I
This is probably a silly question but I have been thinking it over for
I'm pretty much new to Objective C but I've had some experience in Visual
I'm pretty new to Objective-C, as you may gather, and until recently, I hadn't
I'm pretty new to objective c, and having some basic problems. I wrote a
another Objective-C one for you, probably pretty obvious but I have been at this

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.