Link to home
Start Free TrialLog in
Avatar of privateson
privateson

asked on

How to set tint color of TTButton?

Hey guys.
Right now in my application, I have a TTButton.
I am setting the color of the TTButton initially using stylesheet like TTCatalog.
it's like

    [TTStyleSheet setGlobalStyleSheet:[[[CustomBadgeButtonStyleSheet alloc] init] autorelease]];
   
;

And then there is a class called buttonStyleSheet
in there I have

    - (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];
}

But the thing is that only I initialize it, the tint color will be that color set in  - (TTStyle*)toolbarBackButton:(UIControlState)state { method.

But I want to be able to change the color later using setter.
Is there a way that I can change the tint color later?Hey guys.
Right now in my application, I have a TTButton.
I am setting the color of the TTButton initially using stylesheet like TTCatalog.
it's like

    [code][TTStyleSheet setGlobalStyleSheet:[[[CustomBadgeButtonStyleSheet alloc] init] autorelease]];
    [code for initializing ttbutton here];

Open in new window


And then there is a class called buttonStyleSheet
in there I have

   
 - (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];
}

Open in new window


But the thing is that only I initialize it, the tint color will be that color set in  - (TTStyle*)toolbarBackButton:(UIControlState)state { method.

But I want to be able to change the color later using setter.
Is there a way that I can change the tint color later?
ASKER CERTIFIED SOLUTION
Avatar of kouddy
kouddy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial