[ObjC] UIButton with rounded corners

 is a simple /Storyboard extension to make rounded custom buttons, without writing one line of code!

Requirements

How to use

Copy in your project the files:

APRoundedButton.h
APRoundedButton.m

and add QuartzCore framework.

ss-a

Next, open your XIB or Storyboard, make a button, and select the 3rd tab.
Change  default class with APRoundedButton.

Your buttons appear normally (squared), like this:
ss-b

Now, add a  . In the same tab (class), for each custom button you want:
ss-c

add a style key path, of type Number with a value from 0 to 10.

That’s all.
Build and run. You should see something like this:

ss-d

No one line of code is needed!

Full project on github: https://github.com/elpsk/APRoundedButton

have fun.

Want Android version?
Look here!
http://www.albertopasca.it/whiletrue/2014/04/android-button-with-rounded-corners/

Want new version, using ?
Look here:
http://www.albertopasca.it/whiletrue/2015/11/objc-uibutton-with-rounded-corners-ibinspectable/

ref:
albertopasca.it