Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within iOS
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
iOS
How to create black buttons with white font?
Hussein Baghdadi
clojure forum advocate
Posts: 3479
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I'm trying to create a UIButton with black color and white fonts.
I dropped a UIButton into the view in Interface Builder and then:
- (void)viewDidLoad { [super viewDidLoad]; [[later layer] setCornerRadius:8.0f]; [[later layer] setMasksToBounds:YES]; [[later layer] setBorderWidth:1.0f]; [[later layer] setBackgroundColor:[[UIColor blackColor] CGColor]]; }
But nothing changed expect the button has now a more blacker border.
Any ideas?
Hussein Baghdadi
clojure forum advocate
Posts: 3479
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Done guys, I have to set the UIButton type to custom in the IB.
I child proofed my house but they still get in. Distract them with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
passing parameters with LookupDispatchAction
Java program generates html output with question mark symbols after < anchor
Having trouble getting background on TextViews
windows game programming in C++/DirectX
Dynamic table generation in jsp
More...