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 01-19-2009, 01:10 PM   #6 (permalink)
pcmofo
Registered Member
 
Join Date: Oct 2008
Posts: 91
pcmofo is on a distinguished road
Default

Quote:
Originally Posted by scottyelich View Post
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;
pcmofo is offline   Reply With Quote
 

» Advertisements
» Online Users: 438
17 members and 421 guests
brainspoon, chits12345, ChrisYates, dre, elhanche, Evich, gogoman, iOS.Lover, iphonedevshani, jeroenkeij, ketaskin, Kieren Harrold, kurtroom, LegionMD, Sami Gh, tadaki, thestojkovic
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,614
Threads: 94,086
Posts: 402,792
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kurtroom
Powered by vBadvanced CMPS v3.1.0

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