In iPhone application development, when we are required to show UiView with round rect corners, we genrally use images with border or round rect corner in background view. However, we can also meet the requirement by using layer properties.
1. Round rect corner just we need to set corner radius property of view layer property.
[[_view layer] setCornerRadius:14];
2. Set border around corner using border width property of layer.
[[_view layer] setBorderWidth:3.0];
3. Set border color user border color property of layer.