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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:02:14+00:00 2026-05-26T11:02:14+00:00

I know how to put a checkmark as the acessoryView of my UITableViewCell .

  • 0

I know how to put a checkmark as the acessoryView of my UITableViewCell. Unlike the Settings app, my textLabel does not become blue when there’s a checkmark next to it. Is there a simple style property I have to set for this to happen or am I forced to manually change the textColor property on the textLabel? If the latter is true, is this particular shade of blue stored as a constant somewhere?

enter image description here

  • 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-26T11:02:15+00:00Added an answer on May 26, 2026 at 11:02 am

    selectedTextColor has been deprecated in iOS 3.0 so I think you have to use the highlightedTextColor property of the UITableViewCell‘s textLabel property. And I believe [UIColor colorWithRed:50.0/255.0 green:79.0/255.0 blue:132.0/255.0 alpha:1.0] is the correct default shade of blue that is used for highlighted text:

    cell.textLabel.highlightedTextColor = [UIColor colorWithRed:50.0/255.0 green:79.0/255.0 blue:132.0/255.0 alpha:1.0];
    // cell.textLabel.highlightedTextColor = [UIColor colorWithRed:0.196 green:0.3098 blue:0.52 alpha:1.0];
    

    UITableViewCell Documentation.


    Yoou might also want a different cell style then the default. UITableViewCellStyleValue1 is what the Settings App uses:

    Cell Styles

         typedef enum {
             UITableViewCellStyleDefault,
             UITableViewCellStyleValue1,
             UITableViewCellStyleValue2,
             UITableViewCellStyleSubtitle
         } UITableViewCellStyle; 
    
         UITableViewCellStyleDefault
    

    A simple style for a cell with a text label (black and left-aligned) and an optional image view. Note
    that this is the default style for cells prior to iOS 3.0.

         UITableViewCellStyleValue1
    

    A style for a cell with a label on the left side of the cell with left-aligned and black text; on the right side is a label that has smaller blue text and is right-aligned.
    The Settings application uses cells in this style.

         UITableViewCellStyleValue2 
    

    A style for a cell with a label on the left side of the cell with text that is right-aligned and blue; on
    the right side of the cell is another label with smaller text that is
    left-aligned and black. The Phone/Contacts application uses cells in
    this style.

         UITableViewCellStyleSubtitle 
    

    A style for a cell with a left-aligned label across the top and a left-aligned label below it in
    smaller gray text. The iPod application uses cells in this style.


    Got the color from this SO question (text-color-to-match-default…)

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

Sidebar

Related Questions

I know they both put the gems in your app in different locations but
I know not to put strongly named assemblies into the bin folder on early
VIM: Does anyone know how to put a string from an input dialog in
i wanted to know how to put two div right next each other centered
Does anyone know how to put a space for the subject line in between
Does anyone know if I put some source code on Team Foundation Service Preview
Does anyone know how to put a launcher in the panel for an application
I know I can put escaped HTML tags in string resources. However, looking at
I dont't know how to put that, but I need y coordinates of the
I want to know if really 'put' has succeeded in putting the file to

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.