As Oliver mentioned, the easiest way to solve this problem is to create your own custom UIButton with a custom type
UIButton *myBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[myBtn setBackgroundColor:[UIColor blackColor]];
myBtn.layer.cornerRadius = 8;
Remember to import the Quartzcore framework into your .m implementation file. Otherwise, you will not be able to set the cornerRadius of your custom button.
#import <QuartzCore/QuartzCore.h>
source
share