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

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
iOS 5.0 introduced some appearance customization options for
UISegmentedControl. I think the method you’d be most interested in is: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
awakeFromNiborviewDidLoadmethod.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…
self.navigationItem.prompt = @" ";so it’s technically set but doesn’t have anything to display.UIView, add yourUISegmentedControlto that, as well as aUILabelthat you style the way you want with theframe.origin.y = -20.0or so. Then, set that view toself.navigationItem.titleView. Make sure you setclipsToBounds = NOandbackgroundColor = [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.