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 850409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:15:43+00:00 2026-05-15T07:15:43+00:00

This has been really driving me crazy. Web links work fine, but a phone

  • 0

This has been really driving me crazy. Web links work fine, but a phone number (I have tried a zillion combinations) do NOT work from my UIWebView. Any help MOST appreciated. Here’s 3 more ways to do it. And none of them will dial a phone number.

- (void)viewDidLoad {
[super viewDidLoad];

CGRect webRect = CGRectMake(0.0f, 0.0f, 320.0f, 368.0f);
myWebView = [[UIWebView alloc] initWithFrame:webRect]; 
myWebView.backgroundColor = [UIColor clearColor]; 
[myWebView setOpaque:NO];

[[self myWebView] setDelegate:self];

NSString *htmlContent = [NSString stringWithFormat:
@"<html>"
"<body>"
"212-555-1212<br>"
"<a href=tel://212-555-1212>212-555-1212</a><br>"
"<a href=alo://212-555-1212>212-555-1212</a><br>"
"</body>"
"</html>"];

NSURL *baseURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] resourcePath]];

[myWebView loadHTMLString:htmlContent baseURL:baseURL];
[self.view addSubview:myWebView];

[myWebView release];

}

  • 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-15T07:15:44+00:00Added an answer on May 15, 2026 at 7:15 am

    Are you doing this on a device or in the simulator? If a device, is it a phone? If there is no phone app to open, it won’t open. 😉 So the link won’t work on the sim or a non-phone device.

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

Sidebar

Related Questions

This problem has been driving me crazy and Monday mornings don't really help. I'm
This has really been a hassle, but I have two sprites, both of them
I'm sure this has been answered before, but I really cannot find it. I
OK, this may be really simple, but it is Friday and it has been
This has been driving me crazy for a few days. Why doesn't the following
So this has just been driving me nuts! I have looked through tons of
I know this has been asked before but there is really not a clear
This has been driving me nuts for the past hour. I have two computers,
I know this has been discussed ad nauseum...but I have an issue with the
This has been annoying me for a while in several XCode projects. I really

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.