If you’ve ever wanted to identify when your app is being run on a specific device iOS model, in order to limit or enable certain functionality, you’ll have noticed that Apple’s doesn’t provide a way to return the exact version number in its model method to the UIDevice class. Erica Sadun’s UIDevice Extension adds a category to your UIDevice and provide access to a more precise hardware model string. Today’s new release includes a way to identify not only the iPhone 4, but also whether it’s running on AT&T or other carriers.
Other hardware specs like the CPU and bus frequency and total or free disk can also be queried. (via Dr. Touch on Twitter).
Update: As Will Strafach points out, it also identifies an unreleased ‘iPod Touch 4G’ and something called the ‘iTV 1G’.







Pingback: cdevwill (Will Strafach)