Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.
/ UIViewRoundedCorners Public archive

UIView category for rounding just the corners which you want, not all like CALayer cornerRadius.

Notifications You must be signed in to change notification settings

jogi/UIViewRoundedCorners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

UIView+RoundedCorners category

This adds rounded corners to just the corners which you want rounded not all of them like the new CALayer cornerRadius.

Usage

Import the category first:

#import UIView+RoundedCorners.h

Use the following to round all corners:

[myView setRoundedCorners:UIRectCornerAllCorners radius:10.0];

For Top Left and Top Right:

[myView setRoundedCorners:UIRectCornerTopLeft|UIRectCornerTopRight radius:10.0];

Here I have used the inbuilt enum UIRectCorner for specifying the rounded corners. So its much simpler to implement.

Support

iOS 5 only for demo as I am using ARC, but the core UIView category should work with iOS 3.2+

License

Under a Creative Commons Attribution 3.0 Unported License

About

UIView category for rounding just the corners which you want, not all like CALayer cornerRadius.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published