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.
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:
According to Models – The iPhone Wiki, the return value of
platformis one offor an iPad mini.