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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:08:25+00:00 2026-06-14T21:08:25+00:00

Possible Duplicate: Dealing with iPad Mini screen size Is it possible to detect that

  • 0

Possible Duplicate:
Dealing with iPad Mini screen size
Is it possible to detect that your iOS app is running on an iPad mini at runtime?

iPad mini has the same resolution as iPad 1(2) (1024×768).

But iPad mini has 7,9 inches, and iPad 1(2) - 9,7 inches.

So the question is how to check if device is Ipad mini.

  • 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-14T21:08:27+00:00Added an answer on June 14, 2026 at 9:08 pm

    This answer contains a link to an utility method to get a “platform string” that can be used to identify the various iOS devices. I copy the main method here for your convenience:

    #include <sys/types.h>
    #include <sys/sysctl.h>
    
    - (NSString *) platform {
        size_t size;
        sysctlbyname("hw.machine", NULL, &size, NULL, 0);
        char *machine = malloc(size);
        sysctlbyname("hw.machine", machine, &size, NULL, 0);
        NSString *platform = [NSString stringWithUTF8String:machine];
        free(machine);
        return platform;
    }
    

    According to Models – The iPhone Wiki, the return value of platform is one of

    • iPad2,5
    • iPad2,6
    • iPad2,7

    for an iPad mini.

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

Sidebar

Related Questions

Possible Duplicate: Dealing with iPad Mini screen size I want to develop app for
Possible Duplicate: Dealing with accuracy problems in floating-point numbers I was quite surprised why
Possible Duplicate: How do I do multiple assignment in MATLAB? When dealing with cell
Possible Duplicate: Transparent images with C# WinForms I am coding an app which will
Possible Duplicate: What is the best practice for dealing with passwords in github? I'm
Possible Duplicate: In PHP (>= 5.0), is passing by reference faster? Say I'm dealing
Possible Duplicate: Java - escape string to prevent SQL injection I know php has
Possible Duplicate: Dealing with commas in a CSV file We are exporting a bulk
Possible Duplicate: char [length] initialization and dealing with it I have: char d[7]; What
Possible Duplicate: Get the size of a list in python? I need to be

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.