Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6009313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:57:10+00:00 2026-05-23T01:57:10+00:00

I am using Three20 so I can create an experience that is similar to

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:57:11+00:00Added an answer on May 23, 2026 at 1:57 am

    This could be potentially dangerous, but you could monkey patch TTMessageControllers – (void)send method, to use TTTableSubtitleItem.text instead of the object itself, to set recipients.

    - (void)send {
        NSMutableArray* fields = [[_fields mutableCopy] autorelease];
        for (int i = 0; i < fields.count; ++i) {
            id field = [fields objectAtIndex:i];
            if ([field isKindOfClass:[TTMessageRecipientField class]]) {
                TTPickerTextField* textField = [_fieldViews objectAtIndex:i];
                //Here is the important part
                NSMutableArray *recipients = [[NSMutableArray alloc] init];
                for (id textItem in textField.cells) {
                    [recipients addObject:[textItem text]];
                }
                [(TTMessageRecipientField*)field setRecipients:recipients];
                [recipients release];
    
            } else if ([field isKindOfClass:[TTMessageTextField class]]) {
                UITextField* textField = [_fieldViews objectAtIndex:i];
                [(TTMessageTextField*)field setText:textField.text];
            }
        }
    
        TTMessageTextField* bodyField = [[[TTMessageTextField alloc] initWithTitle:nil
                                                                          required:NO] autorelease];
        bodyField.text = _textEditor.text;
        [fields addObject:bodyField];
    
        [self showActivityView:YES];
    
        [self messageWillSend:fields];
    
        if ([_delegate respondsToSelector:@selector(composeController:didSendFields:)]) {
            [_delegate composeController:self didSendFields:fields];
        }
    
        [self messageDidSend];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I'm using the following code from Three20 to display a photo/image gallery. Can anyone
I know that a user can only download up to 20MB over 3G, and
This is in the context of using Three20 but probably relates more to something
I have a basic RSS Reader I made from three20 tutorials using TTLauncherView as
Using CRM 4, I have an entity form that contains a tab with an
When I'm using big frameworks like the Three20 Framework, I always have the choice
using ASP.NET MVC, I have a Model, to which I'm attaching attributes so that
I have created a photo gallery application using Three20 framework. It works fine with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.