Skip to main content

How to get your device Model Number

iOS enables you to get the device model which is running your app. To

get the device model follow the below steps

Step 1: Add #import<sys/utsname.h> line to your view Controller

Step 2: Add following method to your .m file

1. NSString* deviceName()

2. {

3. struct utsname systemInfo;

4. uname(&systemInfo);

5.

6. return [NSString stringWithCString:systemInfo.machine

7. encoding:NSUTF8StringEncoding];

8. }

Step 3 : Now call this method and set return value to string

1. NSString *deviceInfo = deviceName();

Step 4 : This method returns below outputs from below list you can

find your device from below.

1. @"i386" on 32-bit Simulator

2. @"x86_64" on 64-bit Simulator

3. @"iPod1,1" on iPod Touch

4. @"iPod2,1" on iPod Touch Second Generation

5. @"iPod3,1" on iPod Touch Third Generation

6. @"iPod4,1" on iPod Touch Fourth Generation

7. @"iPhone1,1" on iPhone

8. @"iPhone1,2" on iPhone 3G

9. @"iPhone2,1" on iPhone 3GS

10. @"iPad1,1" on iPad

11. @"iPad2,1" on iPad 2

12. @"iPad3,1" on 3rd Generation iPad

13. @"iPhone3,1" on iPhone 4 (GSM)

14. @"iPhone3,3" on iPhone 4 (CDMA/Verizon/Sprint)

15. @"iPhone4,1" on iPhone 4S

16. @"iPhone5,1" on iPhone 5 (model A1428, AT&T/Canada)

17. @"iPhone5,2" on iPhone 5 (model A1429, everything else)

18. @"iPad3,4" on 4th Generation iPad

19. @"iPad2,5" on iPad Mini

20. @"iPhone5,3" on iPhone 5c (model A1456, A1532 | GSM)

21. @"iPhone5,4" on iPhone 5c (model A1507, A1516, A1526

(China), A1529 | Global)

22. @"iPhone6,1" on iPhone 5s (model A1433, A1533 | GSM)

 If you have any further doubts, drop us an email at info@infigic.com and we’ll get back to you with the best possible solution. Infigic is a  Mobile Application Development Company and we are always there to solve your queries. 

Comments

  1. This is nice & sharing blog about information that how can we recognize model no. Visit more for grocery app development , grocery app design

    ReplyDelete
  2. In today’s fast-growing world, People have no time for shopping their daily basics. They prefer to use online grocery delivery app to get their groceries at the doorstep. It saves time and makes more convenient for users to order anytime. M-commerce leads the huge crowd to its court and made the users installed the various app for purchasing the items. Out of these highly used apps, grocery apps are installed in the higher number by users nowadays. Double up your revenue by hiring dedicated grocery app development company. Grocery shopping app development has given us a new way of buying groceries while sitting at home. Grocery app solutions help you to take your grocery business to the next level of online selling.

    ReplyDelete

Post a Comment

Popular posts from this blog

The Best Pharmacy Apps for 2019

When you can buy almost everything online, there’s no reason why you can’t buy medicines online. The steady growth in the number of apps to purchase medicine online shows how online businesses are adding convenience and comfort in one more area. And the growth is not surprising, considering that  the US spent over $450 billion on medicines in 2016 . Even a small piece of the pie in the business to serve customers who buy medicine online is big business. A pharmacy delivery app brings a number of benefits to everyone, from pharmacies to patients. Some benefits like ease of purchase or competitively priced products are quite obvious. However, these apps are capable of adding a lot of value to users. From helping people fix consultation appointments to publishing health blogs, these apps are offering an almost 360-degree service that physical visits to local pharmacies cannot. Little wonder that most  physical retail pharmacies  are adding mobile apps with which t...

7 Things to Consider Before Hiring Laravel Developers

Laravel is a well known PHP net framework that's gaining popularity with every passing day. It is preferred by plenty of significant web developing industries because of its simple and convenient use. Laravel was introduced in the year 2011 and now in 2017 it has developed itself to be the very appreciated PHP framework, that's utilized by different industries for their web development jobs. It is capable of managing various projects ranging from a simple web app to difficult APIs. Prior to getting into a detailed discussion on Laravel developer let's take a look at the critical features of Laravel frame. 1)  Easy to combine with other programmes 2)  Excellent resources 3)  Easy authentication 4)   Multiple file system 5)   Route caching 6)  Highly tested HTTP coating 7)  Powerful unit testing 8)   Energetic record execution etc.. Because of all of these features, presently Laravel is in high demand as well ...

Wordpress to Laravel

Overview Client has decided to switch his business website from Wordpress to Laravel or similar PHP framework. Client wants to have latest technology services associate with his business website. Challenge Challenge faced while development was incorporating forum, blogs, job board and online Store in single website. Definitely it was a switch from Wordpress to Laravel that took some time to understand old one and transform it to new one. Client also required an admin panel to customize things on his own website. Result Infigic understood the requirements thoroughly. Infigic developed a Laravel based website. Website has a forum for various discussions to takes place among the users. There is a job board which notify you about various jobs for you to take part. Client  liked the new look and interface of  Laravel Website. Features: Forum Blog with articles Job Board Listings ( For Health Professionals) Basic Online Store Basic Admin Pa...