1

如何以编程方式获取 UINavigationBar 标题的字体、颜色、阴影等?我正在使用 Xcode 和 Cocoa touch。

4

1 回答 1

2
NSDictionary * attributes = navigationBar.titleTextAttributes;
UIFont * font = [attributes objectForKey:UITextAttributeFont];
...more pairs exist in attributes...
于 2012-04-18T05:56:28.097 回答