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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:29:34+00:00 2026-05-13T14:29:34+00:00

I have a text view, which has links to web pages, like Wikipedia. Usually

  • 0

I have a text view, which has links to web pages, like Wikipedia. Usually when I click on the links it closes my app and opens up Safari.

How do I control the hyperlink, so it loads the web page in the UIWebView instead of Safari?

Putting a button over the link isn’t what I want, because it is a scrollable text view.

Is there a Void I can call, because I also need to start showing the web view when the link is clicked.

Thanks. Any answers would be appreciated.

(I am a 12 year old learning to program for the iPhone. See Spaceulator or visit timh.me.uk for my first app)

  • 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-13T14:29:35+00:00Added an answer on May 13, 2026 at 2:29 pm

    You can register your app as a URL handler for some URL scheme – for example “nttp”.
    Add the next lines in your Info.plist file:

    <key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleURLName</key>
            <string>com.test.nttp</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>nttp</string>
            </array>
        </dict>
    </array>
    

    When you write the content for your text view use the “nttp” URL scheme instead of the “http” (“nttp://www.stackoverflow.com/” instead of “http://www.stackoverflow.com/“).

    Implement the application:handleOpenURL: method in your app delegate:

    - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    
    NSString *aUrl = [url absoluteString];
    
    // Use the URL
    
    return YES; }
    

    For example, you can replace the “nttp” by “http” and initiate some web view with it…

    Hope that this solution is good enough…

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

Sidebar

Related Questions

Hi All, I have a web-view in my application which displays some text with
I have Text( http://www.mywebsite.com ) in a view, in which i need to provide
I have a custom component which consists of 2 text view and 4 toggle
I want to implement this view But I have one question: The text which
In my application,i have text view with long text. i need text wrapping like
I have created a web-service app and i want to populate my view controllers
So I am reading from a text file which has product information I have
I have a view. the view has a function that returns a text string
I have a TextView which i set the text using setText(). In properties, I
I have a text view defined as class attribute so that I can access

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.