0

我正在使用以下代码

if ([MFMailComposeViewController canSendMail])
        {
            MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
            picker.mailComposeDelegate = self;
            [picker setSubject:@"Check out"];
            UIImage *morphedImage = [sharedSingleton getCopy];
            NSData *myData = UIImagePNGRepresentation(morphedImage);
            [picker addAttachmentData:myData mimeType:@"image/png" fileName:@"RaceFaceImage"];
            [picker setMessageBody:@"I've given you a new look using my RaceFace iPhone application.  Check it out and have a good laugh.  I dare you to Race me, download the app here:<b>Sourish</b><a href='www.google.com'>itunesLink</a>" isHTML:YES];
            [self presentModalViewController:picker animated:YES];
            [picker release];
        }
        else
        {

        }

我以这种方式获得 O/Pin MailComposer 输出

我想当我点击蓝色文本时,你应该打开特定的文本,我该怎么做?

任何形式的帮助都是非常有帮助的
谢谢和问候

4

1 回答 1

0

使用此代码

NSString *link = [NSString stringWithFormat:@"http://www.google.com"];
            [controller setMessageBody:[NSString stringWithFormat:@"<p><font size=\"2\" face=\"Helvetica\"><a href=%@></br>%@</br></a></br></font></p>",link,@"Google"] isHTML:YES];

希望对你有帮助......

于 2012-10-04T14:37:04.587 回答