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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:29:56+00:00 2026-05-20T18:29:56+00:00

I want a hyperlink in my iPhone Application, for example like in HTML: <a

  • 0

I want a hyperlink in my iPhone Application, for example like in HTML:

<a href="www.yahoo.com"> Click here </a>

How can i do this in Objective-C?

The most important thing is that I don’t want to show the actual link, I just want to show some text like “click here” and then it loads a link.

I’m currently using the below code. But as i told you I don’t want to show the link instead I want something like “click here”.

textView.text = @"http://stackoverflow.com";

textView.dataDetectorTypes = UIDataDetectorTypeLink;
  • 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-20T18:29:57+00:00Added an answer on May 20, 2026 at 6:29 pm

    Try this way:

    UIButton *btnFaceBook = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
    [btnFaceBook setFrame:CGRectMake(20, 290, 280, 30)];
    [btnFaceBook setBackgroundColor:[UIColor clearColor]];
    [btnFaceBook.titleLabel setFont:[UIFont boldSystemFontOfSize:16]];
    [btnFaceBook addTarget:self action:@selector(followFacebook) forControlEvents:UIControlEventTouchUpInside];
    [btnFaceBook setTitle:@"Click Here" forState:UIControlStateNormal];
    [contentView addSubview:btnFaceBook];
    

    below is the function to open the link:

    -(void) followFacebook{
        [[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"http://facebook.com/"]];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this to generate a hyperlink for me: <%= link_to Example, http://example.com %>
I have Html contents like <span> http://j.mp/eUcRNK </span> I want to hyperlink on above
i want to create screen in android like the image below(click on the hyperlink)
I want a hyperlink on my main page to launch an HTML help page
I want a hyperlink that looks like a standard button. I have tried using
I want to make somethink like hyperlink. Right now, i created button, which opens
I am handling a hyperlink's click event with a JavaScript function. I want to
Hello friends can you tell me how to make style of button like hyperlink.
I want to trigger a hyperlink by hitting Enter using jQuery. I have the
In WPF, I want to create a hyperlink that navigates to the details of

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.