round coiners of button


/ Published in: Objective C
Save to your folder(s)

rounds corners of any button #import


Copy this code and paste it in your HTML
  1. #import <QuartsCore/QuartsCore.h>
  2.  
  3. +(void)roundButtonCorners:(UIButton *)button withRadius:(float)radius
  4. {
  5. button.layer.cornerRadius = radius;
  6. button.clipsToBounds = YES;
  7.  
  8. }
  9.  
  10. //usage
  11. [self rounduttonCorneers:self.yourButtonOutlet withRadius: 5.0f];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.