Since every UIView is backed by a Core Animation layer, you can work directly on the layer if you want.
If you are building for 3.0 or higher, you have access to CALayer properties like cornerRadius, borderWidth, and borderColor. Those three should do exactly what you are looking for.