I am using Three20 so I can create an experience that is similar to MFMailComposer with the ability to have more control over how messages and emails are sent. I have taken a look at the three20 TTCatalog MessageController demo app, but it also has the same issue I am running into. When you choose a contact from the specified DataSource and click Send in both the TTCatalog app as well as my app the To field has a value I do not know how to work with. I did some logging within my app within the MessageWillSend method and this is what happens when I choose one contact, do not enter a subject, or a message in the body.
"To: (\n \"<TTTableSubtitleItem: 0x618ee30>\"\n)",
"Subject: ",
"(null) (null)"
The Subject and body are fine (the correct text is displayed when I actually enter values), but how do I extract the value that is in the To: field?
I am using the datasource described here: How to use Three20 TTMessageController? so in this case the To field should contain the chosen mobile number.
I am using Xcode 4.