How to create a round shape UIview instead of the rectangular shape


Hi in my application i need a view which is of round shape instead of a rectangle shape. How to create a uiview object of round shape please let me know. Thanks in advance.

You can set the cornerRadius of the layer of your view.

#import <QuartzCore/QuartzCore.h>

yourView.layer.cornerRadius = 20;