Skip to content

Commit

Permalink
fixed SMS body
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdaugh committed Mar 21, 2013
1 parent 54b5119 commit 8688873
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MarketLoco/FancyCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ -(void)displaySMSComposerSheet
MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
if([MFMessageComposeViewController canSendText])
{
controller.body = @"I saw your item on MarketLoco. I'd like to buy it.";
controller.recipients = [NSArray arrayWithObject:[item objectForKey:@"createdBy"]];
[item fetchIfNeeded];

controller.body = [NSString stringWithFormat:@"I'm interested in \"%@\"", [item objectForKey:@"title"]];
controller.recipients = [NSArray arrayWithObject:[item objectForKey:@"postedBy"]];
controller.messageComposeDelegate = [APP_DELEGATE viewController];
[[APP_DELEGATE viewController] presentModalViewController:controller animated:YES];
}
Expand Down

0 comments on commit 8688873

Please sign in to comment.