iOS Rounded corners


Example

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