Skip to content

极度方便的设置四周圆角、单个圆角,四周阴影、单边阴影、上下阴影、左右阴影等

License

Notifications You must be signed in to change notification settings

YotrolZ/YCShadowView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
zhaoyongchao
Jul 12, 2019
4f88e01 · Jul 12, 2019

History

11 Commits
Jul 12, 2019
Jul 12, 2019
Jan 30, 2019
Jan 30, 2019
Jan 30, 2019
Jan 30, 2019
Jul 12, 2019
Jan 30, 2019
Jul 12, 2019

Repository files navigation

YCShadowView

Example

  • To run the example project, clone the repo, and run pod install from the Example directory first.

How to use YCShadowView

  • Installation with CocoaPods:

    • pod 'YCShadowView'
    • #import <YCShadowView/YCShadowView.h>
  • Manual import:

    • Drag the YCShadowView folder to project
    • #import "YCShadowView.h"
  • Use

YCShadowView *view = [[YCShadowView alloc] initWithFrame:CGRectMake(200, 250, 100, 100)];
view.backgroundColor = [UIColor whiteColor];
[view yc_shaodwRadius:10 shadowColor:[UIColor colorWithWhite:0 alpha:0.5] shadowOffset:CGSizeMake(0, 0) byShadowSide:(YCShadowSideRight)];
[view yc_cornerRadius:10 byRoundingCorners:(UIRectCornerBottomLeft)];

Author

YotrolZ, 207213149@qq.com

License

YCShadowView is available under the MIT license. See the LICENSE file for more info.

About

极度方便的设置四周圆角、单个圆角,四周阴影、单边阴影、上下阴影、左右阴影等

Resources

License

Stars

Watchers

Forks

Packages

No packages published