I am new to iOS development. For my little messenger I need a contact picker and a textarea. So the TTMessageController of the Three20 project seems to be very interesting.
However I am not really sure how to implement it. For now I have three controllers, one for each view. I want to have a contact picker and textarea on the third view.
I have set up three20 successfully. But how do I use it? Can I use it through interface builder or just by code? What would be an approach in my case?
Before I get started on this I want to be sure that this is the right solution. Is it true that three20 lets me decide how to deal with the input that comes from the text fields? I want to send sms with my own gateway.
Look at the source code for the TTCatalog example app that comes with the three20 source. It has an example of calling TTMessageController and handling the fields. Basically you implement the TTMessageControllerDelegate in your class and the TTMessageController will send the fields from the message to you for processing once the send button is pressed. I'm using this class as a front end for sending SMS messages via 3rd party gateway in my app. I've combined it with a message bubble view to mimic the native SMS application and it works like a champ.
EDIT: If you just have a skeleton of a view controller at this point you might be better off cloning MessageTestController into your app and adapting it rather than trying to reimplement bits of it in your controller. One thing the sample app doesn't do is hook the MessageController to your addressbook. For that you'll need to create a AddressbookModel and AddressBookModelDataSource like this:
AddressbookDataSource.h
AddressbookDataSource.m
AddressBookModel.h
AddressBookModel.m
The addressbook stuff was seriously the hardest part of the whole exercise. The rest is really easy.