Try the search, it's linked to some great forums

Monday, May 19, 2014

Rounded Rectangle Buttons in iOS 7 - Old school!

iOS 7 has moved away from realistic UI into this new world of flatness.   One element that doesn't work for me is the new UIButton which I guess is supposed to look like a link or something.  Ugh!
Here is a simple way to achieve the simple gray rounded rectangle of yester years.  Courtesy of tech tutorials and their great little YouTube tutorial



In the Identity Inspector add the 2 new Runtime attributes. 
Set background color & text in the Attributes Inspector.

Here's another good tutorial; http://ios-blog.co.uk/tutorials/user-defined-runtime-attributes/ 

Now for some geeky details;
These attributes (properties) are properties of CALayer