/ Published in: Objective C
rounds corners of any button #import
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#import <QuartsCore/QuartsCore.h> +(void)roundButtonCorners:(UIButton *)button withRadius:(float)radius { button.layer.cornerRadius = radius; button.clipsToBounds = YES; } //usage [self rounduttonCorneers:self.yourButtonOutlet withRadius: 5.0f];