On Feb 9, 2010, at 3:31 PM, MARC BLATT wrote:

> I wanted to have a different GUI launch when the app is running on an iPhone 
> versus when it's running on the iPod Touch. The iPhone GUI would have some 
> phone/3GS features available that wouldn't be available on the Touch. I was 
> hoping to do a call similar to checking the OS version.


Check for the features you need. For example, if you need to know if tel: urls 
will work, use -[UIApplication canOpenURL:]. If you need to know if you can use 
the Camera, use +[UIImagePickerController isSourceTypeAvailable:], or if the 
camera is capable of movies check +[UIImagePickerController 
availableMediaTypesForSourceType:]. Compass can be detected via 
-[CLLocationManager headingAvailable].
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to