How can I tell if the application is running on iPhone 4 or iPhone 3GS or an iPad?
I want to determine if which hardware I'm using and then provide additional functionality if it's an iPhone 4 (such as using the video light or gyro-sensor).
Any help would greatly be appreciated.
Thanks
PS: I'm looking to determine this programmatically and not determine if based on physical appearance.