我正在尝试通过编程的方式设置整个项目中
UIBarButtonItem
的tintColor
。我调用了:[UIBarButtonItem appearance]
。但是,在查看苹果文档http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html后,没有找到设置tintColor
的属性。我找到的最相关方法是:setBackgroundImage:forState:barMetrics:
setBackgroundImage:forState:style:barMetrics:
然而,这两种方法都用于设置实际背景图片。是否可以通过UIAppearance
仅设置按钮的tintColor
?