In the following code:
is it possible to add the text from 2 UILabels into the blanks here:
?
Thanks,
Nick
Code:
- (IBAction)email:(id)sender{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil
message:@"message"
delegate:self
cancelButtonTitle:@"Thanks! Maybe Later"
otherButtonTitles:@"Email Name", @"Review",nil];
[alert show];
[alert release];
}
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 2){
//
}if (buttonIndex == 1){
MFMailComposeViewController *picker =
[[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
[picker setSubject:@"Name"];
NSString *emailBody = @"Hello my name is _______ _______ . What is yours?";
[picker setMessageBody:emailBody isHTML:YES];
[self presentModalViewController:picker animated:YES];
[picker release];
}if (buttonIndex == 0){
//
}
}
- (void)mailComposeController:(MFMailComposeViewController*)controller
didFinishWithResult:(MFMailComposeResult)result
error:(NSError*)error {
[self becomeFirstResponder];
[self dismissModalViewControllerAnimated:YES];
}
is it possible to add the text from 2 UILabels into the blanks here:
Code:
NSString *emailBody = @"Hello my name is _______ _______ . What is yours?";
?
Thanks,
Nick