I am trying to use the Three20 framework for their TTMessageController. It’s a great replication of the Apple version, and I need to use it to send custom messages through an API.
I have loaded all of the User information I need from the API (it comes in as JSON but I store it as an NSArray full of NSDictionary objects) and I want the (+) button on the side to bring up a list of users as well as being able to type and convert directly to a contact.
Does anybody know how this is possible?
The
TTCatalogapp contains good example of that, and it’s indeed a little complicated. However, I think it’s worth using it. Writing your own message compose controller will probably take weeks, and won’t look as good as Three20’s.you can copy the code from
MessageTestControllerand fromSearchTestControllerand use it as is.Then you will have to change the datasource in
MockSearchDataSource. It contains an array of the persons that shows up in the search. just try to populate that array from your JSON data and move on from there.