We help IT Professionals succeed at work.

How to set tint color of TTButton?

privateson
privateson asked
on
1,174 Views
Last Modified: 2013-11-25
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?
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.