Iphone 320 address book TTMessageController
I am trying to use the TTMessageController from Three20 to send messages through a custom web service. I don't understand how I can include contacts from the user's address book. I can see the model model address book in the sample app, but the sample only contains names. Is there a way to set the TTMessageController datasource as an address book?
Thanks, Howie
a source to share
You have to use MFMailComposeViewController. The TTMessageController was built prior to iOS 3, when the Apple SDK app did not have email functionality. MFMailComposeViewController does pretty much everything most developers want to do and uses device contacts automatically, so you don't have to worry about setting up the model yourself.
Using TTMessageController would be a good solution if you needed to customize the presentation of fields or customize message delivery.
IOS Documentation (Send Mail): http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/SystemMessaging_TopicsForIOS/Articles/SendingaMailMessage.html#//apple_ref/doc/uid/TP40010415-SW1
a source to share