An UIView category with method for adding round corners selectively
Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
UIView+Roundify.h
UIView+Roundify.m

README.md

UIView+Roundify

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.