Re: Cocoa method to determine if application is running on iPhone
Re: Cocoa method to determine if application is running on iPhone
- Subject: Re: Cocoa method to determine if application is running on iPhone
- From: David Duncan <email@hidden>
- Date: Tue, 9 Feb 2010 15:42:57 -0800
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 (email@hidden)
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:
This email sent to email@hidden