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 6167589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:32:24+00:00 2026-05-23T22:32:24+00:00

I have one UITextField that has a value and one UILabel that has text.

  • 0

I have one UITextField that has a value and one UILabel that has text. I have added an in-app email button that works. I would like to add the UITextField’s value and the UILabel’s text to the body of the email.
Example code:

if ([MFMailComposeViewController canSendMail]) {
    [composer setToRecipients:[NSArray arrayWithObjects:@"tkw1976@gmail.com" , nil]];
    [composer setSubject:@"Subject"];
    [composer setMessageBody:@"This is the body" isHTML:NO];

    [self presentModalViewController:composer animated:YES];

I would like the messageBody to look like this:

sandwiches(UILabel) 10(UITextField)

  • 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-23T22:32:24+00:00Added an answer on May 23, 2026 at 10:32 pm

    You’re practically there. Make connections for your UILabel and UITextField, and then set the text of the message by

    NSString *message = [NSString stringWithFormat:@"sandwiches %@ 10 %@",label.text,textField.text];
    [composer setMessageBody:message isHTML:NO];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scanner that is reading text into a UITextField, looks like it
have one time consuming step that flattens a bunch of files. basically i'd like
I have one table that has sales records and another table that has additional
I have one form with several text fields and one button. When i enter
I would like to create a UIView has multiple UITextFields validates each one as
I have some simple UITextFields that bring up the Numberpad. I would like to
I have a UITextField that I want to display a pre-defined list of email
In UITextField we have some delegate methods like that any delegate method available in
i have one database, and it contains some columns. My requirement is that how
I have a TableViewController that is using a grouped Style and has two(2) sections.

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.