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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:23:20+00:00 2026-05-26T13:23:20+00:00

My apps are a lot of cpu and memory are affected by. So a

  • 0

My apps are a lot of cpu and memory are affected by.
So a different unit divided by the variable must be initialized. But this I would like to know at compile time rather than at runtime.
Runtime hours can know how to distinguish.
How do I distinguish at compile time?

Know how to distinguish between OS versions, which I do not know the law to distinguish between devices.

The following code is only os divide. but, i would like to detailed device information.
(iPod Touch 3/iPod Touch4/ iPhone3GS/ iPhone4/ iPhone4S/ iPad/ iPad2)

#if __IPHONE_OS_VERSION_MIN_REQUIRED <= __IPHONE_4_0
    const static NSTimeInterval TIME_INTERVAL = 0.3;
#elif __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_4_0
    const static NSTimeInterval TIME_INTERVAL = 0.1;
#endif
  • 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-26T13:23:21+00:00Added an answer on May 26, 2026 at 1:23 pm

    It should be pretty obvious that there is no way to decide at compile time which device your code runs on. All devices run the same executable. The only possible distinction that could be made at compile time would be the one between armv6 (everything older than the iPhone 3Gs) and armv7.

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

Sidebar

Related Questions

(I've read a lot about 64-bit versus 32-bit OS/Apps, but this question is specifically
I have been experimenting with a lot of web development apps like Drupal, Moodle,
in my server I have a lot of apps installed like, facebook_connect, userena, guardian
I was just wondering if this approach looks like a good practice for apps
For debugging purposes, I would like to have a variable in all my templates
There are lot of low-memory problems out there with Game Apps running on iPad
I have two apps with very similar code bases, but full of different data,
I am am new to mobile app development. But i would like to know
Hey champs, This question is for iPad apps designing. I searched a lot on
A lot of apps keep user logged in until user manually logs out like

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.