button rounded corners ios code example
Example 1: ios rounded button
button.layer.cornerRadius = button.frame.size.height / 2
// must be in the viewDidLoad func
Example 2: round courners of uibutton
yourButton.layer.cornerRadius = 10; // this value vary as per your desire
yourButton.clipsToBounds = YES;