【发布时间】:2010-07-09 17:34:51
【问题描述】:
现在在我的应用程序中,我有一个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 更改颜色。 有什么方法可以让我稍后更改色调颜色吗?
【问题讨论】:
标签: objective-c iphone cocoa-touch xcode three20