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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:43:02+00:00 2026-06-17T05:43:02+00:00

Suppose i have a CoreText NSMutableAttributedString with this words:Continue Reading I want to make

  • 0

Suppose i have a CoreText NSMutableAttributedString with this words:”Continue Reading”

I want to make the first word “Continue” clickable so that i can tap on it and show a load another UIView. I have found how to make it underlined and change the colour to blue but how can i make it linkable. Any example?

This is my code to make it underlined and the foreground colour blue.

CFAttributedStringSetAttribute(string, CFRangeMake(0, 10),kCTForegroundColorAttributeName, [UIColor blueColor].CGColor);
          SInt32 type = kCTUnderlineStyleSingle;

CFNumberRef underline = CFNumberCreate(NULL, kCFNumberSInt32Type, &type);
CFAttributedStringSetAttribute(string, CFRangeMake(0, text.length),kCTUnderlineStyleAttributeName, underline);
CFAttributedStringSetAttribute(string, CFRangeMake(0, text.length),kCTUnderlineColorAttributeName, [UIColor blueColor].CGColor);

Thanks

  • 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-06-17T05:43:03+00:00Added an answer on June 17, 2026 at 5:43 am

    There are plenty of resources out there, one which is
    found here Hyperlink in coretext

    What you need to do is find the bounds of the word/section that you want to make clickable, and add a subview within those bounds that handles a tap. Hope it helps!

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

Sidebar

Related Questions

Suppose I have this : item_one = Object.find(1) rescue item_one, value = [Object.first, true]
Suppose we have this code for login & we want if the credential was
Suppose we have an application that is targeted to Any CPU , but this
Suppose I have this animation that start at some point : myElement.animate({ top: -currentTempImageX,
Suppose I have an array that looks like this array ([apple] => 1, [dog]=>2,
Suppose I have an HTML page that looks something like this: <html><body> 00123 <input
Suppose I have a vertical menu that is coded like this: <ul class=sub-menu> <li
Suppose i have an XML file, that i use as local database, like this):
Suppose I have a stream of [acme] objects that I want to expose via
suppose i have label and button on textbox and i want that if i

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.