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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:36:18+00:00 2026-06-18T08:36:18+00:00

I am already able to add a layer with text in it using CATextLayer.

  • 0

I am already able to add a layer with text in it using CATextLayer. However I’m finding the way the text is presented pretty basic. I would like to write paragraphs with quotes, in bold sometimes, italic etc…

Is there a way to do it with CATextLayer?

If not, how could I manage it, especially if the text is pulled out of a database?

I would like to be able to write the following text this way for instance:

“The article was about employment. He leafed through it in an instant. His feeling of anxiety resurfaced and he closed the magazine.

-Hm…, he breathed.

-Have you been looking for work long?, asked the stranger at his side.”

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-18T08:36:19+00:00Added an answer on June 18, 2026 at 8:36 am

    You dont need rich text if all you want to do is line breaks. add a \n for a newline. So:

    layer.text=@"The article was about employment. He leafed through it in an instant. His feeling of anxiety resurfaced and he closed the magazine.\n\n-Hm…, he breathed.\n\n-Have you been looking for work long?, asked the stranger at his side."
    

    Real Rich Text isn’t possible AFAIK

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

Sidebar

Related Questions

I have an ObservableCollection that I would like to be able to add and
I need to be able to add XML data to an already created parent
I am writing a Django application and using the built-in ORM. I would like
I'd like to be able to do this: std::unordered_map<icu::UnicodeString, icu::UnicodeString> mymap; However, when I
I would like to include an interactive 3D map in my website. I already
I was already able to implement the autocomplete, it's just that what I wan
I want to be able to take an image that i have already captured
i can't seem to be able to refresh data that has already been loaded
We need to change an already running job. We should be able to push
I already have my azure web role running in cloud using azure sdk 1.6.

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.