Add rounded corner to UIView by category
Usage
UIView *view = [[UIView alloc]init];
view.frame = CGRectMake(50, 200, 200, 300);
[view addRoundedCorner:10 borderWidth:0 borderColor:[UIColor whiteColor] backgroundColor:[UIColor redColor]];
[self.view addSubview:view];