On iPhone OS 3.0 and later, you can easily get rounded corners by setting the borderRadius property of the view layer.
view.layer.cornerRadius = 5;
#import <QuartzCore/QuartzCore.h>, CALayer.
, - , .
, .
, Core Graphics CGGradient.
, UIImage stretchableImageWithTopCapHeight:leftCapWidth:; , .