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

  • Home
  • SEARCH
  • 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 8961773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:58:18+00:00 2026-06-15T15:58:18+00:00

I know this topic might be a very commonly asked question but I still

  • 0

I know this topic might be a very commonly asked question but I still couldn’t get the solution.

Firstly, I know there are two methods to check OS version

1)

[[UIDevice currentDevice] systemVersion]

This is definitely not something I’m looking for because this is used during runtime, what I’m looking at is something can be done during compilation.

2)

#if __IPHONE_6_0
// do something
#endif

This is something that I was hoping it to work but it doesn’t. 2 problems here:

i) Running on iPhone simulator version 5.0 and I noticed #if __IPHONE_6_0 is returning TRUE value. I thought it suppose to be TRUE only if the version is 6.0 or above?

ii) Same thing happen when I tested it on iPad simulator. Does that macro works on iPad as well?

The reason that I want it to be done during compilation is because I’m using the latest iOS 6.0 Social Framework but I would like my app to support on older version (min 4.3) as well. Problem is part of my codes are using Social Framework stuffs. So I have to do a macro check to know whether this device support Social Framework or not, if not don’t compile that particular Social Framework’s codes. If I don’t do that, I will be getting error during compilation because OS that below version 6 does not know what is Social Framework.

Looking forward to get some solutions here.

  • 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-15T15:58:19+00:00Added an answer on June 15, 2026 at 3:58 pm

    You can’t use macros for this purpose because when you compile macros use YOUR version and it will not work for other devices(it seems to be obvious…)

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

Sidebar

Related Questions

I know there is a lot on this topic but I can't get any
I know there's already a lot of questions on this topic but I might
I know there are already some posts about this topic, but I cannot find
i know every web-developer hates this topic, but anyway... i found no good solution
This might sound a bit of the topic, but i really wanna know whether
I know this topic has been discussed but I think it has some differences.
I know this topic was descibed few times so far, but here is mine
I know this topic is bit old, but i did surf the web and
sorry, i know this lots on this topic, but i couldnt find one where
I know this is a recurrent/classical topic but I did not found anything that

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.