지금은 내 응용 프로그램에서 TTButton
입니다. 처음에는 TTCatalog
과 같은 스타일 시트를 사용하여 TTButton
의 색상을 설정합니다.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를 사용하여 색상을 변경할 수 있기를 원합니다. 나중에 색조를 변경할 수있는 방법이 있습니까?