iOS: Adding rounded corners in a layer
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD2DYXQYHsps7MYn5k-wvxhLr5gwx6OAwLU6KgaYZa6uEPw86ziO_kGNHsiHPUxYFlaOiTbVk0I9YfL8fSFOqkQdOf0XzdKeAOvQp08iyA8e4vdjp7_f7hW2OBqEKoZ_P2bWEj7LuPZo8T/s1600/Screen+Shot+2013-04-23+at+6.17.12+PM+copy.png)
CALayer *layer = roundedFrameView. layer ; layer. cornerRadius = 8.0f ; layer. borderColor = [[ UIColor colorWithRed : 0.89 green : 0.89 blue : 0.98 alpha : 1 ] CGColor ]; layer. borderWidth = 0.8 ; The RGB color above will render a light gray color which is ideal for a rounded frame. Check out my screen shot below. You notice the frame where it covers the string "The Item is list as "On Sale"..." is being framed.