iOS CALayer Rounded corners


Example

layer.masksToBounds = true;
layer.cornerRadius = 8;