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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:14:48+00:00 2026-05-20T21:14:48+00:00

Short and sweet: My end goal is to, using one UILabel with two words,

  • 0

Short and sweet:
My end goal is to, using one UILabel with two words, display one word in bold, and the other in normal font. All solutions I’ve found are over my head! 🙁

More detail:
I asked a question the other day that didn’t give me the answer I was hoping for, and now it looks like I need to recreate ABPeoplePickerNavigationController using a UITableViewController and contents from ABAddressBook. If you read my previous question and can come up with a better solution, awesome! If not…

When I recreate the PeoplePicker, I really want to mimic Apple’s default implementation exactly, especially how they use both bold and normal fonts for a contacts’ name in the same label.

Now, I know this question has been asked a lot, on SO and elsewhere. Many people have had this need, and the solutions vary:

  1. use a webview
  2. use the UIStringDrawing methods
  3. subclass UILabel and override drawrect
  4. delve into CoreText
  5. use the ThreeTwenty library
  6. use two uilabels, create one as bold, one as normal, and place them next to each other (would require me to then subclass UITableViewCell in order to place two labels

Solutions #2, #3, and #4 seem the most robust, and according to what I’ve read in other questions, it’s how Apple is actually doing it. Unfortunately, these techniques are a little over my head at the moment, and I’m having a hard time following the limited amount of details I’m finding on the web. I haven’t really done anything with explicit drawing yet.

Has anybody implemented this yet themselves? Any code samples you can provide to help me get the hang of these more advanced techniques?

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-05-20T21:14:49+00:00Added an answer on May 20, 2026 at 9:14 pm

    So, just to round this out, I ended up finding a 7th option. 🙂

    I went with OHAttributedLabel. I still wasn’t able to wrap my head around UIStringDrawing methods or overriding drawRect in a subclassed UILabel; I think those would have been the cleanest solution. However, OHAttributedLabel seems solid, is super lightweight, and does exactly what I need it to do.

    Good luck! If anyone finds more solutions, or feels like they want to explain UIStringDrawing or or drawRect in more detail, feel free to post!

    Update:

    I’ve been using Matt Thompson’s TTTAttributedLabel and have been really happy with it.
    https://github.com/mattt/TTTAttributedLabel

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

Sidebar

Related Questions

Short and sweet version: On one machine out of around a hundred test machines
Short ans sweet: Why does :hover does not display the hidden content? I've tried
Whats up? I'll keep it short and sweet. How can I determine if two
How can one solve the word game Ghost? Ghost is a two player word
Short and sweet, Is it ok to use (current version) Ruby 1.9.1 with Rails
To keep it short and sweet: There is hibernate-commons-annotations 4.1.0-Final and hibernate-annotations 3.5.6-Final. I'm
This question will be short and sweet. I know an instruction can occur between
Short one: Am I correct in assuming, that the Samsung Galaxy S wifi 4.0
Short: Is there a way we can push to multiple remotes simultaneously using Github
Short and sweet version: Is there a single web service method that would return

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.