Quote:
Originally Posted by cye
text message as in SMS.
|
I haven't done this, but doing some digging, it looks like you have 2 options. You can use the UIApplication openURL method to open an URL of the type sms://, but that appears to only start a message using a specified phone number. I don't see a way to specify a message body using that approach.
Alternately, you can use a new iOS 4 class, MFMessageComposeViewController. That lets you put up a dialog that prompts the user to enter a phone number and message body to send. You can pre-fill the phone number and message body with the info from your UITextField, and the user then has a chance to edit it and/or send it.