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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:24:31+00:00 2026-06-01T02:24:31+00:00

Please see the attached image. I’m trying to change the color on the segmented

  • 0

Please see the attached image. I’m trying to change the color on the segmented control title, and I cannot find the appropriate attribute. If this is in the Apple docs, I’d be happy to be shown where…

Can anyone please enlighten me..

Thanks

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-06-01T02:24:33+00:00Added an answer on June 1, 2026 at 2:24 am

    iOS 5.0 introduced some appearance customization options for UISegmentedControl. I think the method you’d be most interested in is:

    - (void)setTitleTextAttributes:(NSDictionary *)attributes forState:(UIControlState)state
    

    Discussion
    The attributes dictionary can specify the font, text color, text shadow color, and text shadow offset for the title in the text attributes dictionary, using the keys in NSString UIKit Additions Reference.

    Update

    If you’re creating your UISegmentedControl programmatically, you can just go ahead and call this method right after you create it. If you’re loading from a nib, you’ll have to set it as an outlet and call this method in your awakeFromNib or viewDidLoad method.

    Now, your "Please tap the appropriate button" text is in the navigation prompt? I’m not sure if you can modify the look of that. Perhaps you could do some trickery…

    • Set self.navigationItem.prompt = @" "; so it’s technically set but doesn’t have anything to display.
    • Make a UIView, add your UISegmentedControl to that, as well as a UILabel that you style the way you want with the frame.origin.y = -20.0 or so. Then, set that view to self.navigationItem.titleView. Make sure you set clipsToBounds = NO and backgroundColor = [UIColor clearColor].

    That way, it should display the segmented control with your custom label over it, theoretically at least. Let me know how this turns out.

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

Sidebar

Related Questions

Please see attached image. alt text http://img241.imageshack.us/img241/3585/customcost.png Can you please tell me what query
Please see attached image alt text http://img248.imageshack.us/img248/7743/datefrom.png I have a table which have FromDate
Please see the attached image: 1) I downloaded a new library here: ( http://www.java2s.com/Code/Jar/ABC/Downloadcommonslang24jar.htm
I am new in android development.Please see the Attached image also Please check this
How can i place values on the 'google.visualization' graph ? please see image attached.
Please see the code below. I am trying to draw a circle around a
Please see the code below <html xmlns=http://www.w3.org/1999/xhtml> <head> <title>Test</title> </head> <body> <div> ¿Hola cómo
Please see attached picture to better understand my question i have a matrix of
Please see the attached screenshot which illustrates a TToolBar from one of my programs:
UPDATED WITH SCREEN PRINT OF THE ISSUE: Please refer to the attached image where

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.