|ReleasedLast Release||Dec 2014|
Maintained by Unclaimed.
|LOCLines of Code||46|
Allows rounding of just two corners of a UIView, instead of four.
The demo/ folder contains a demo project showing UIView+PartialRoundedCorner in use. Open and run it.
This code can round the corners on views of any class. Just copy the files under src/ into your project, import "UIView+PartialRoundedCorner.h", then call the following on any view:
[yourView setCornerRadius:… direction:…];
Where corner radius is a float, and direction is one of the following:
This class has been tested back to iOS 6.0.
This class is implemented by creating a mask layer for the view, setting the corner radius on that, and offsetting it to the top, bottom, left, or right to get the appropriate effect.
This code is released under the MIT License. See the LICENSE file for details.