Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-08-2008, 10:51 AM   #2 (permalink)
scottyelich
New Member
 
Join Date: May 2008
Posts: 79
scottyelich is an unknown quantity at this point
Default Re: IB - UIButton title with a code and shadow

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.
scottyelich is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,639
Threads: 94,102
Posts: 402,830
Top Poster: BrianSlick (7,990)
Welcome to our newest member, sCarlRodriguezj
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:04 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.