Saturday, March 30, 2013

Changing a Custom Button's Corners from Square to Round

#import <CoreQuartz/CoreQuartz.h>

_myButton.layer.cornerRadius = 8;
_myButton.layer.borderWidth = 1;
_myButton.layer.borderColor = [UIColor grayColor].CGColor;
_myButton.clipsToBounds = YES;

No comments:

Post a Comment