CPL's iOS Resources
iOS code snippets & other daily musings
Pages
(Move to ...)
iPhone Tricks n Treats
My Portfolio
Edible Monterey Bay Farmers' Markets
Panoramic Pictures
Virtual Eye for the Sailing Guy
Panoramio Widgets
Tutorial Central
Map Kit
Blog
▼
Saturday, June 4, 2011
Simple check for a device feature (email in this case)
canSendMail is a class method (+) so therefore can be called on the class itself;
if ([mailClass canSendMail])
{
[self displayComposerSheet];
} else {
[self launchMailAppOnDevice];
}
‹
›
Home
View web version