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

  • Home
  • SEARCH
  • 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 7631593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:23:38+00:00 2026-05-31T06:23:38+00:00

I have changed tel property to do some string manipulation instead of calling that

  • 0

I have changed tel property to do some string manipulation instead of calling that number.

its working in simulator but when i do it device, its still trying to call.

i have tried with webview, textview, button still same problem 🙁

Any idea?


Let me rephrase

By default, when clicked on any link with tel:xxxx iPhone calls number xxxx
But i don’t want calling, instead i want to grab xxxx and append that value to my String.
How to do that.

Thanks

- (void)viewDidLoad {
    [super viewDidLoad];
    self.htmlString = [self createHTML];

    [webView setBackgroundColor:[UIColor clearColor]];
    [webView setOpaque:NO];
    [webView loadHTMLString:self.htmlString baseURL:nil];
}
- (NSMutableString *) createHTML {
    NSMutableString *tempString =[NSMutableString stringWithFormat:@"<div>"];
    [tempString appendString:@"John Smith"];
    [tempString appendFormat:@"<br> <a href='tel:201207415'>201207415</a>"];
    [tempString appendString:@"</div>"];
    return tempString;
}
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request     navigationType:(UIWebViewNavigationType)navigationType {
    //CAPTURE USER LINK-CLICK.
    NSURL *url = [request URL];
    NSString *mytext =   [url absoluteString];
    NSLog(@"%@",mytext);
    myLabel.text = mytext;
    return YES;   
}
  • 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-31T06:23:40+00:00Added an answer on May 31, 2026 at 6:23 am

    If you do not want to call:

    - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request     navigationType:(UIWebViewNavigationType)navigationType
    {
        return NO;
    }
    

    Simulator cannot call anyway.

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

Sidebar

Related Questions

I have changed the Treeview.HideSelection = false; But how do I insure that when
I have a xml file that changed when i update some values, and i'm
Is there any way to list all the files that have changed between two
I want a Python object that will monitor whether other objects have changed since
Someone told me that it's faster to concatenate strings with StringBuilder. I have changed
I have changed my Visual Studio 2010 to use my local IIS7 instead of
I have a few (3-4) value tel number. Refresh to the page shows one
I have some contact information, in which I wish to wrap the telephone number
I know something must have been changed but my code seems to have broken
I have changed database from postgresql to mysql , but I don't know how

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.