如何使UIToolbar字体与UINavigation Controller匹配?

Cod*_*nts 4 iphone uitoolbar uinavigationcontroller uilabel

使用以下帖子,我能够将UILabel添加到UIToolbar,但是,它看起来很糟糕.任何人都知道如何获取文本大小/颜色/阴影以匹配UINavigationController的标题?

导航控制器

替代文本http://www.codingwithoutcomments.com/uploads/Picture1.png

UIToolbar与UILabel

替代文本http://www.codingwithoutcomments.com/uploads/Picture2.png

我需要采取哪些步骤才能使它们匹配?

Ale*_*lds 7

您可能还想添加阴影?

itemLabel.shadowColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];
itemLabel.shadowOffset = CGSizeMake(0, -1.0);
Run Code Online (Sandbox Code Playgroud)