Recipe: Sending a Text Message
It’s even easier to send a text from your applications than to send an e-mail. This particular controller is shown in Figure 8-4. As with mail, first ensure that the capability exists on the iOS device and declare the MFMessageComposeViewControllerDelegate
protocol:
[MFMessageComposeViewController canSendText]
Monitor the availability of text support, which may change over time, by listening for the MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification
notification.
Recipe 8-8 creates the new controller and sets its ...
Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.