0
现在在我的应用程序中,我有一个TTButton
。 我设置TTButton
的颜色最初使用样式表,如TTCatalog
。更改TTButton的色调颜色
它看起来像这样:
[TTStyleSheet setGlobalStyleSheet:[[[CustomBadgeButtonStyleSheet alloc] init] autorelease]];
[code for initializing ttbutton here];
然后有一个叫buttonStyleSheet
类,并在那里我有:
- (TTStyle*)toolbarBackButton:(UIControlState)state {
TTShape* shape = [TTRoundedLeftArrowShape shapeWithRadius:4.5];
UIColor* tintColor = RGBCOLOR(47,47,47);
return [TTSTYLESHEET toolbarButtonForState:state shape:shape tintColor:tintColor font:nil];
}
但事实是,只有我初始化,着色颜色将在(TTStyle*)toolbarBackButton:(UIControlState)state
方法中设置该颜色。
但我希望能够在以后使用setter更改颜色。 以后有什么方法可以改变色调颜色吗?