Anyone how to go about putting the text from a label into the body of an email? I know how to create an email that can be sent on a button touch but I am not sure how to put the label text in the body of the email. My label is randomly populated from a plist file and the view is populated by
I already know how to set up an email I just don't know what to place in for the body text that would set it as the current displaying label.
Code:
TestAppDelegate *appDelegate =
(TestAppDelegate *)[[UIApplication sharedApplication] delegate];
fileContents = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"plist"];
NSDictionary *test = [[NSDictionary alloc] initWithContentsOfFile:fileContents];
NSMutableArray *things = [test valueForKey:@"things"];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:label cache:YES];
[UIView commitAnimations];
int randomNumber = arc4random() % [things count];
things = [things objectAtIndex:randomNumber];
[appDelegate setModelData:things];