0

私の iPhone アプリケーションでは、メールを送信することができます。メールの本文にURLがあります。コードは以下のようなものです。

- (IBAction)sendEmailClick:(UIButton *)sender{
    if ([MFMailComposeViewController canSendMail]) {

        NSString* message = @"Click link below to reach the shared file(s).<br /><br /> http://google.com <br /><br /> Do you want to try our product? Please visit <a href=\"http://www.test.com/\">http://www.test.com/</a>";        

        MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
        [controller setSubject:@"Shared file from App"];
        [controller setMessageBody:message isHTML:YES];
        controller.mailComposeDelegate = self;
        controller.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
        [self presentModalViewController:controller animated:YES];
    } else {
        UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"App", nil) message:NSLocalizedString(@"Your phone is not currently configured to send mail.", nil) delegate:nil cancelButtonTitle:NSLocalizedString(@"OK", nil) otherButtonTitles:nil];
        [alertView show];
    }
}

JavaScript を有効にしましたが、メールの URL をクリックしてもブラウザで開きません。

4

0 に答える 0