Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6655497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:31:36+00:00 2026-05-26T01:31:36+00:00

I have an IOS app that displays some hardcoded HTML pages… Is it possible

  • 0

I have an IOS app that displays some hardcoded HTML pages… Is it possible to open the email program with a MailTo button ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:31:37+00:00Added an answer on May 26, 2026 at 1:31 am

    I just tried it using the below code, and the link was there, but the email App did not load when I clicked the link. Nothing at all happened in-fact. However, this was on the simulator.

    Update: This did open the Mail App on an actual device. So, yes, it does work!

    - (void)embedYouTubeWithVideoID:(NSString *)videoID {
        CGFloat w = webView.frame.size.width;
        CGFloat h = webView.frame.size.height;
        NSString *ytUrlString = [NSString stringWithFormat:@"http://www.youtube.com/v/%@&version=3&autohide=1&autoplay=1&cc_load_policy=1&fs=1&hd=1&modestbranding=1&rel=0&showsearch=0", videoID];
        NSString *embed = [NSString stringWithFormat:@"\
                           <html>\
                               <head>\
                                   <meta name=\"viewport\" content=\"initial-scale = 1.0, user-scalable = no, width = %0.0f\"/>\
                               </head>\
                               <body style=\"background:transparent;margin-top:0px;margin-left:0px\">\
                                   <div>\
                                       <object width=\"%0.0f\" height=\"%0.0f\">\
                                           <param name=\"movie\" value=\"%@\" />\
                                           <param name=\"wmode\" value=\"transparent\" />\
                                           <param name=\"allowFullScreen\" value=\"true\" />\
                                           <param name=\"quality\" value=\"high\" />\
                                           <embed src=\"%@\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" wmode=\"transparent\" width=\"%0.0f\" height=\"%0.0f\" />\
                                       </object>\
                                   </div>\
                           <a href=\"mailto:test@example.com\">MAIL_TO_TEST</a>\
                               </body>\
                           </html>", w, w, h, ytUrlString, ytUrlString, w, h];
        [webView loadHTMLString:embed baseURL:nil];
    }
    

    webview with mailto anchor tag

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iOS app that displays content from a sqlite db in a
I have an app for iOS that display some files in a tableview which
I have a universal iOS app with a custom view that has three buttons,
I have an iOS app that posts to users FB feeds with a link,
in an iOS app I have to display a list of text items that
I have some code that displays a checkmark as the auxiliary view of a
I am creating an iOS app that displays a web view. How can I
I have an iOS app that streams background audio using AVAudioSession. It is working
Im working on an ios app using objective c and i have an issue
In my app, I have to draw some images on a view, in real-time,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.