Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yrvaken2

macrumors newbie
Original poster
Sep 15, 2008
12
0
Hello!

I am doing working on an app with custom UIButtons. I got two questions.

1) Is it possible to set an offset shadow on the title Text in a Custom button?

2) The background image I selected for state:"Selected" do not appear after a button is pressed?

Anyone how can give me a hint in how to solve this two problems?

Thanks in advance!
 
Well, after some more search on internet I found this code which works fine!

Code:
		[selected setSelected:NO];
		[((UIButton*)sender) setSelected:YES];
		selected = ((UIButton*)sender);

Where selected is a global UIButton

So just question 1) remaining
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.