Quote:
Originally Posted by scottyelich
I just type this up.. seems to work:
Code:
-(void)awakeFromNib
{
NSLog(@"awake");
srandom(time(NULL));
[theButton setTitle:@"Roll Dice" forState:UIControlStateNormal];
[theButton setTitle:@"Rolling!" forState:UIControlStateHighlighted];
}
but this doesn't seem to do anything for me:
Code:
[theButton setTitleShadowColor:[UIColor redColor] forState:UIControlStateNormal];
[theButton setTitleShadowColor:[UIColor blueColor] forState:UIControlStateHighlighted];
Scott
ps: seems this formatter doesn't like long lines... sorry.
|
I just figured this out.... you need to set the shadow offset....
Code:
CGSize myOffset;
myOffset.width = 2.0f;
myOffset.height = 2.0f;
customButton.titleShadowOffset = myOffset;