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 の出力

青いテキストをクリックすると、particualr urが開かれるようにしたいのですが、どうすればそれを行うことができますか??

どんな種類のヘルプも非常に役立ち
ます ありがとうございます

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 に答える