Skip to content

This is a category of UIView which provided the ability of add specified corner(s) to a view with a optional border.

Notifications You must be signed in to change notification settings

TravelC/TCRoundedCorner

Repository files navigation

TCRoundedCorner

This is a category of UIView which provided the ability of add specified corner(s) to a view with a optional border.

Change Log

1.0.1

  1. Fix wrong frame when set border in viewDidLoad.

Installation

Cocoapod Method:-

pod 'TCRoundedCorner', '~> 1.0.0'

Source Code Method:-

Add files in folder TCRoundedCorner to your project.

How To Get Started

1.Only round myView's corners:

[self.myView roundedCorner:type radius:20.0];

2.Round corners and add a border together:

[self.myView roundedCorner:type radius:20.0 borderColor:borderColor borderWidth:5.0];

3.Add border only:

[self.myView addBorderWithColor:borderColor borderWidth:5.0];

4.Remove border:

[self removeBorder];

LICENSE

Distributed under the MIT License.

Author

If you wish to contact me, email at: [email protected]

Blog

http://travelchu.com

About

This is a category of UIView which provided the ability of add specified corner(s) to a view with a optional border.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published