An UIView category with method for adding round corners selectively.
Usage:
#import "UIView+Roundify.h
...
- (void) viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
[self.someView addRoundedCorners:(UIRectCornerTopLeft | UIRectCornerBottomLeft)
withRadii:(CGSize){16.f, 16.f}];
}
See this tip on Stack Overflow.