I have an email address in a UITextView (detected with UIDataDetectorTypes) that opens a mail composer in-app (like a MFMailComposeViewController
) rather than opening the default Mail app itself.
self.textView.dataDetectorTypes = UIDataDetectorTypeLink;
// ...
self.textView.text = @"Blah blah email@address.com blah blah";
I was under the impression that email addresses and other links would, by default, open in an external app rather than the app itself. Is there a setting that determines this? The problem with this is that the mail composer doesn't fit with the app's layout and the send and cancel buttons are hidden (in iOS 7), but either way I'd prefer to have mail app open instead.
This is happening on iOS 6 and 7, both on devices on in the simulator. On an iOS 5 device it works as I expected (the mail app is opened).