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更改顏色。 以後有什麼方法可以改變色調顏色嗎?