-(void)setButtonStyling:(UIButton *)button
{
CALayer *layer = [button layer];
[layer setCornerRadius:5.0f];
[layer setMasksToBounds:YES];
[layer setBorderWidth:1.0f];
[layer setBorderColor:[[UIColor colorWithWhite:0.4f alpha:0.2f] CGColor]];
}
//setting and calling the function
[self setButtonStyling:self.myButton];
No comments:
Post a Comment