Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default fontsize, fontname and shadow for titles in Navigation Bar?

I'm trying to have a button on the self.navigationItem.rightButton that toggles a segmented control that is placed in self.navgivationItem.titleView .. this will however remove the title that is first set by self.title when the navbar is created .. I dont know if my approach is bad but I figured I could rotate between a UILabel and the Segmented Control in the titleView.

It works as I would like it to, however I cant figure out what size and font and shadowoffset and shadowcolor the default titles in a navigation bar is .. could you help me with a solution that either not force me to override the navigationItem.titleView or help me figure out the information needed to make a UILabel look exactly like the default titles.

Thankful for any help.

like image 977
oehman Avatar asked Nov 06 '22 15:11

oehman


1 Answers

In code, something along the lines of:

http://www.iphonedevsdk.com/forum/iphone-sdk-development/11648-change-uisegmentedcontrol-font-size.html

should help, except you'll be querying the size, name etc. of the UILabel.

like image 91
petert Avatar answered Nov 12 '22 21:11

petert