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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:38:12+00:00 2026-06-17T19:38:12+00:00

Possible Duplicate: Determine device (iPhone, iPod Touch) with iPhone SDK How to find iPhone/iPod

  • 0

Possible Duplicate:
Determine device (iPhone, iPod Touch) with iPhone SDK
How to find iPhone/iPod Device model(3G,3GS,4,4S) by code?

I know there is a way to get the model and localized model of the phone by using the command [[UIDevice currentDevice] model] or [[UIDevice currentDevice] localizedModel], but on several iPhones, both commands generate the same result, which is “iPhone” (or “iPad” for all iPads).

I was hoping to find a way to detect whether the device is an iPhone 3, 3S, 4, 4S, or 5 (or iPad 1, 2, etc). Is this value hidden within the uniqueIdentifier, or is there an easier way to find this?

  • 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-17T19:38:13+00:00Added an answer on June 17, 2026 at 7:38 pm

    From this iphonedevsdk post,

    #import <sys/utsname.h>
    
    struct utsname u;
    uname(&u);
    
    NSString *nameString =  [NSString stringWithCString:u.machine encoding:NSUTF8StringEncoding];    
    

    Check this blog “iPhone @2x Graphics, scale, and iPad” and this list of identifiers as well.

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

Sidebar

Related Questions

Possible Duplicate: Determine device (iPhone, iPod Touch) with iOS I am making a game
Possible Duplicate: Determine device (iPhone, iPod Touch) with iOS I have tried to get
Possible Duplicate: Is there any way to determine text direction from CultureInfo in asp.net?
Possible Duplicate: Determine if running on a rooted device I would like to know
Possible Duplicate: Is there a way to determine the .NET Framework version from the
Possible Duplicate: In Java, what is the best way to determine the size of
Possible Duplicate: how to determine location based on ip Is there a PHP function
Possible Duplicate: Determine if running on a rooted device How do you determine (programmatically)
Possible Duplicate: Simple way to determine if string is only characters, or to check
Possible Duplicate: Best way to determine if two path reference to same file in

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.