troubleshooting Question

How to set tint color of TTButton?

Avatar of privateson
privateson asked on
CSwift ProgrammingiPhone
1 Comment1 Solution1180 ViewsLast Modified:
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];

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?
ASKER CERTIFIED SOLUTION
kouddy

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros