Find out which iPhone version [duplicate] - iphone

This question already has answers here:
How do I detect which iOS device my user is using?
(3 answers)
Closed 9 years ago.
My app uses the camera and face recognition extensively and I recently found out that it's slow on the iPhone 4.
I know you can find the ios version and what type of device it is.
Is there a way to find out programmatically which iPhone is being used (4/4S/5)?

iOS Version: [[UIDevice currentDevice] systemVersion]
Device Model: How to programmatically differentiate between iphone 4 and iphone 4S? or How do I detect which iOS device my user is using?

Related

Get UDID through my iPhone Application in iOS 7.0 [duplicate]

This question already has answers here:
UIDevice uniqueIdentifier deprecated - What to do now?
(32 answers)
How to get Device UDID in programmatically in iOS7?
(10 answers)
Closed 8 years ago.
I have created the application for getting the UDID few moths ago, its working fine for iOS 6 but iOS 7.0 is not provide, for getting the UDID from the iOS7.0 device i saw some mobileconfig kind of thing will work. But I am not getting right to do this.
thanks in Advance.
See this for an alternative. UDID is now deprecated and will result in rejection.
An alternative to the device UDID - preparing ourselves
UDID is no longer available in iOS 6+ due to security / privacy reasons.
Alternative solution: see this link.
Try This:
[[[UIDevice currentDevice] identifierForVendor] UUIDString];

How to get the IMEI in iPhone 4S programmatically? [duplicate]

This question already has answers here:
Finding IMEI number using Objective-C [duplicate]
(5 answers)
Closed 5 years ago.
I need to get imei on iPhones.
I use https://github.com/erica/uidevice-extension/blob/master/UIDevice-IOKitExtensions.m to get IMEI.
It works fine on iphone 4, 3GS ... even with ios5.
But with iPhone 4S, imei is empty. Does somebody have a solution ?
Thank you for your answer
If you have backup of that iPhone in iTunes, you need to
go to Preferences >> Dvices, and the if you hover the
backup you should see not only IMEI number but also
Serial number and Mobile number.
You can check if that IMEI or Serial number are coreckt
on this website: http://sndeep.info/en
Check when your iPhone was activated on this Apple web services:
https://selfsolve.apple.com/agreementWarrantyDynamic.do
You can easily get the IMEI by looking at the SIM card placement slot:
It should be there for the following devices:
iPhone 7
iPhone 7 Plus
iPhone 6s
iPhone 6s Plus
iPhone 3G
iPhone 3GS
iPhone 4 (modello GSM)
iPhone 4s
Source: Apple Official Documentation.
x#06# is used for all phones. İphone 4/4s for on
you can check imei by dialing *#06# thats it

How to programmatically detect if the app is running on a device with performance >= 4S? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Determine device (iPhone, iPod Touch) with iPhone SDK
Detect the specific iPhone/iPod touch model
If an app has some features which require high hardware performance which look only good on iPhone 4S and higher, how can I detect wether or not it is an iPhone 4?
I know it is not a good idea to detect models. but better to detect capabilities. How can I safely check that it's a device with a performance >= iPhone 4S?
You want to check the device id, not the version of the iOS, refer to this answer.
Without using any libraries, you could also refer to this answer.

How to get imei on iPhone 4S? [duplicate]

This question already has answers here:
Finding IMEI number using Objective-C [duplicate]
(5 answers)
Closed 5 years ago.
I need to get imei on iPhones.
I use https://github.com/erica/uidevice-extension/blob/master/UIDevice-IOKitExtensions.m to get IMEI.
It works fine on iphone 4, 3GS ... even with ios5.
But with iPhone 4S, imei is empty. Does somebody have a solution ?
Thank you for your answer
If you have backup of that iPhone in iTunes, you need to
go to Preferences >> Dvices, and the if you hover the
backup you should see not only IMEI number but also
Serial number and Mobile number.
You can check if that IMEI or Serial number are coreckt
on this website: http://sndeep.info/en
Check when your iPhone was activated on this Apple web services:
https://selfsolve.apple.com/agreementWarrantyDynamic.do
You can easily get the IMEI by looking at the SIM card placement slot:
It should be there for the following devices:
iPhone 7
iPhone 7 Plus
iPhone 6s
iPhone 6s Plus
iPhone 3G
iPhone 3GS
iPhone 4 (modello GSM)
iPhone 4s
Source: Apple Official Documentation.
x#06# is used for all phones. İphone 4/4s for on
you can check imei by dialing *#06# thats it

Prevent an iPhone app from running on iPad [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Prevent iPhone app to run on iPad
Is it possible to prevent my iPhone app from running on an iPad, not even the X2 version.
Thanks
Here is Article about how Prevent iPhone app to run on iPad
Use UIDevice's model method to get device name in string.
NSString* deviceType= [[UIDevice currentDevice] model];
Possible examples of model strings are #”iPhone” and #”iPod touch”.
So you could get the model name in the starting of the application and could show the appropriate popup for showing like "Currently No supporting the iPad" and exit from the application.
In the plist settings, add Application requires iPhone environment and set the boolean to YES