Reputation: 11148
In my project, I use the Facebook API "three20": https://github.com/facebook/three20/
I use a TTButton in my UINavigationBar. Is it possible to change the shadow of the text?
All buttons and labels in the UINavigationBar need an shadow OVER the text. The text shadow of the TTButton is UNDER the text.
Thanks!
Upvotes: 1
Views: 551
Reputation: 583
Have you tried customizing your TTButtons with a TTStyle? TTTextStyle, which is a subclass of TTStyle can be used to customize the look of your text and its shadows, like the textcolor, shadow offset, and more.
example, in my subclassed TTDefaultStyleSheet class called, BNDefaultStyleSheet, i have this method:
- (TTStyle*)titleText {
return [TTTextStyle styleWithFont:[UIFont boldSystemFontOfSize:12] color:[UIColor orangeColor] next:nil];}
it returns the styling for a view component to which the styling may apply.
this doc here is the class reference for TTStyle and its subclasses which may come in handy http://api.three20.info/interface_t_t_style.php1
Upvotes: 1