What feature are you looking for? Generally you test for each feature prior to attempting to use it. For example, the MFMailComposeViewController (Monotouch.MessageUI) has a CanSendMail boolean property, which you should check to ensure the current device can send email, before attempting to use it. Same goes for the camera, gyroscope etc etc etc... You shouldnt base your code on the type of device they user has. The main two issues with this would be that Apple will come out with new devices in the future, and your code wont know what features they have, and secondly, just because a user has a particular device, doesnt mean they can do what you want. (for example, MFMailComposeViewController.CanSendMail will return false if a user hasnt setup mail on their device, even if they are on a device that supports emailing).
-- View this message in context: http://monotouch.2284126.n4.nabble.com/feature-detection-tp3885297p3886584.html Sent from the MonoTouch mailing list archive at Nabble.com. _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
