Device Name for iPad Mini Retina - ios

on IOS calling uname() will return the device name. The only doc i could find is this website but it does not contain the iPad Mini Retina in the list.
Does anyone know what uname() will return on that device ?
Thanks,
Razvan.

Check this list. Looks like it contains all Apple devices. According to this list iPad mini Retina WiFi is iPad4,4 and iPad mini Retina Cellular is iPad4,5

Related

What's the different between iPad Retina simulator and iPad Air simulator in Xcode 6?

An iPad Air already has a Retina screen, so why has Apple deliberately designed two kinds of simulator?
The simulator does not include the iPad mini. The difference between the Retina and the Air is the 64 bit processor.
iPad Air = Retina x64
iPad Retina = Retina x32
iPad 2 = Non-Retina x32
To test the iPad mini Apple recommends testing on a non-retina device (aka iPad 2):
From the "Apple iOS Simulator Guide":
Although an iPad mini isn’t an option for a simulated device in
Simulator, you can still test apps for the iPad mini in the simulator.
To do this, run your app on the simulated iPad without Retina display.
Edit:
You can also test iPad mini on iPad Retina Simulator.
See updated Apple "iOS Simulator User Guide":
Testing for the iPad mini
To test apps for the iPad mini in the simulator, run your app on a simulated
iPad with the corresponding type of display, either Retina or non-Retina
depending on the iPad mini model.

Run app on iPad Mini Retina on Xcode 6

I build app for iPad and sent to my client, and gave me feedback that it runs on every iPad devices which we supported(compatible with iOS5+ iPad 1G, 2G, 3G, 4G, mini, mini 2, Air) except iPad Mini Retina, he said that App install fine but doesn't. I don't have iPad Mini Retina but I want to check this on my side. I install latest Xcode 6 but still I am not able to see iPad Mini Simulator which you can see attached image. So kindly any one give me suggestion how to accomplish this task. Thanks in advance.
Although an iPad mini isn’t an option for a simulated device in iOS
Simulator, you can still test apps for the iPad mini in the simulator.
To do this, run your app on the simulated iPad without Retina display.
via Testing for the iPad mini
So, the scoop is that you have to build apps for iPad 2 resolution. The iPad Mini is non-retina with a resolution of 1024x768 which means apps that already worked on an iPad 2 automatically work on iPad Mini. This is another useful thread.
You can test it on iPad Mini in Xcode by choosing Resizable iPad from the iOS simulators and then you can configure the pixel resolution in the simulator. The resolution in landscape is 1024x768 but on iPad Mini 2 and 3 it's 2048×1536. More info here.
For Xcode 7 one should use Ipad 2 and iPad Air.
See the Reply from apple-staff-user "jeremyhu" on
https://forums.developer.apple.com/thread/12567
i don't think thats an adequate solution although.

How to exclude iPad Mini support?

My app only has retina images, so I am including front-facing-camera as a device capability to exclude non-retina iPhone devices; however, this does not account for iPad devices. How can i exclude non-retina iPad devices, such as the iPad mini, from my app? If not possible, then is there a way to exclude all iPad devices from my app?

How to configure iOS app to work on specific devices?

I am developing iOS app with ZBar SDK for QR-codes scan. Here ZBar SDK creators tell us that
Only the iPhone 3GS and iPhone 4 are supported, as they have a camera
with auto-focus. The ZBar library does not support the iPhone 3G and
is unlikely to ever support it.
So I have added auto-focus-camera key to the Required Device Capabilities section of my plist. All is great, except one thing - iPad 2 & iPod Touch 4th Gen doesn't have auto focus camera, but still are able to use my ZBar SDK code to scan QR-codes. But my auto-focus-camera key doen't allow users with iPad 2 and iPod Touch 4th Gen to download my app from App Store.
In other words I need to find a way to make my app installable via App Store on these devices:
iPhone 3GS.
iPhone 4.
iPhone 4S.
iPad 2.
The New iPad.
iPod Touch 4th Gen.
And on these devices my app should not be available:
iPhone 2G.
iPhone 3G.
iPad.
iPod Touch 3d Gen and
My question is: how to make my app available in App Store for first list devices' user and not available for second list devices' users?
Any help will be appreciated!
PS: I have seen this question on SO, but it doesn't help me much.
PS2: This app has the desired set of available devices.
Requirements: Compatible with iPhone 3GS, iPhone 4, iPhone 4S, iPod
touch (4th generation), iPad 2 Wi-Fi, iPad 2 Wi-Fi + 3G, iPad (3rd
generation) and iPad Wi-Fi + 4G.
Does anyone know, how they did it?
PS3: At the same time adding both still-camera and auto-focus-camera gives us this:
Requirements: Compatible with iPhone, iPod touch (4th generation),
iPad 2 Wi-Fi, iPad 2 Wi-Fi + 3G, iPad (3rd generation) and iPad Wi-Fi
+ 4G.
And that is not a great way as long as we have all iPhones as suitable for our app, instead of 3GS, 4 and 4S.
PS4: My app is here and it has such requirements:
Requirements: Compatible with iPhone 3GS, iPhone 4, and iPhone 4S.
Word Lens requires the armv7, opengles-2, and video-camera device capabilities.
I'm not sure that you can do that
Maybe you can do a check in your code and if the device model is not the good one, just pop a new view saying that the model that the user is using can't make work the application ?
You can detect the model with this:
#import <sys/utsname.h>
NSString*
machineName()
{
struct utsname systemInfo;
uname(&systemInfo);
return [NSString stringWithCString:systemInfo.machine
encoding:NSUTF8StringEncoding];
}
and give that:
#"i386" on the simulator
#"iPod1,1" on iPod Touch
#"iPod2,1" on iPod Touch Second Generation
#"iPod3,1" on iPod Touch Third Generation
#"iPod4,1" on iPod Touch Fourth Generation
#"iPhone1,1" on iPhone
#"iPhone1,2" on iPhone 3G
#"iPhone2,1" on iPhone 3GS
#"iPad1,1" on iPad
#"iPad2,1" on iPad 2
#"iPhone3,1" on iPhone 4
#"iPhone4,1" on iPhone 4S
Else you can try sending an e-mail to apple
We need to use video-camera key in Required Device Capabilities section of app's plist.

Testing iOS app in devices with non-retina display and with retina display

I am developing an app that support iOS 4.0 or above. As iOs 4.0 can be installed in iPhone 3GS, iPhone 4, iPod touch 3rd gen, iPod touch 4th gen. The app will be run in non retina display device and retina display device.
I understand that the OS will determine which image file to display (2x resolution or normal resolution) depends on the devices.
If I only have retina display device for testing, can I just use the simulator to test that the UI look good in non retina display?
Just want to make sure you know this: To support retina and non retina you need to have two versions of the same image. For example if the non retina version is named image.png and is of dimensions 100x200, the retina version should be the same image named image#2x.png and of dimensions 200x400. If the retina version is not available the OS scales up the non retina version.
Your simulator has an option to run at the iPhone's normal or retina resolution. Once your iPhone Simulator is booted up, in the top menu bar, select Hardware>>Device. In that menu you can switch between iPad, iPhone and iPhone (Retina). This way you can test your app on retina and non retina resolutions without having those actual devices.
There's no true replacement for device testing, but yes, if it looks alright in the simulator, it generally will look alright on a real device.

Resources