I am trying to create a button on self.navigationItem.rightButton that switches a segmented control that fits into self.navgivationItem.titleView .. this will, however, remove the header that self.title first sets when navbar. I don’t know if my approach is bad, but I decided that I could rotate between UILabel and Segmented Control in the titleView.
It works as I would like, but I can’t determine what size and font and shadowoffset and shadowcolor have default names in the navigation bar. Could you help me with a solution that either would not force me to override navigationItem.titleView or help me figure out the information needed to make UILabel look exactly like the default names.
Thanks for any help.
source
share