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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:27:25+00:00 2026-06-11T03:27:25+00:00

This question might be simple. So, if I use some new class in the

  • 0

This question might be simple.

So, if I use some new class in the new SDK, should I assume my app can run only on iPhones with the same OS version number or above?

For example, if I use a class whose document says this class exists only after iOS 5, should I assume my app can run only on iPhone with iOS 5?

or the term iOS 5 in the class document refers to only the SDK, not the target deploy platform?

  • 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-11T03:27:26+00:00Added an answer on June 11, 2026 at 3:27 am

    Deployment target, iOS and SDK are not the same concept, but they are related. When you see that a method or a class is available in iOS5 that means that you will need to have a SDK5 in your machine in order to compile it, and that the user needs an iOS5 in their device in order to execute it. However, you could have a deployment target below it (iOS4 for example) and just take care on runtime to not execute that part of the code.

    There is a lot of detailed information of how to do it out there, but in brief:

    1. If it is a method, check before calling that it responds to the method: [object respondToSelector:@selector(yourNewMethod)]

    2. If it is a class, check before instantiate the object that the class exists: NSClassFromString(@"YourNewClass"). Additionally, if the class is in a new framework not present in your old deployment target, remember to link it as a “weak” framework. Otherwise it will fail when starting.

    Of course, in both cases, you need to give an alternative response to the user.

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

Sidebar

Related Questions

This might be a simple question but I've searched and searched and can't find
This might be a simple question, but i can't seem to grasp it. I
This might be a simple question for some people since it was quite hard
This might be a simple question, but I'm fairly new to PHP and am
There might be a really simple solution to this question, but i just don't
You will suppose this is a big question.but there might be a simple problem
This might be a simple question but I'm just picking this up so please
This might be a simple question, but I'll ask it anyways. I know when
Hey this might be a simple question, but i have been stumped on it
EDIT:: This might be simple for some but right now it has me confused.

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.