Latest 1.0.0
Homepage https://github.com/SYFH/MKInnerShadow
License MIT
Platforms ios 7.0
Authors

MKInnerShadow

MKInnerShadow是用来添加视图内阴影的快捷工具

截图

Screenshop

使用

self.testInnerShadowView.innerShadowPath    = [UIBezierPath bezierPathWithRoundedRect:self.testInnerShadowView.bounds cornerRadius:8];
self.testInnerShadowView.innerShadowColor   = [UIColor colorWithWhite:0.88 alpha:1];
self.testInnerShadowView.innerShadowOffset  = CGSizeMake(3, 3);
self.testInnerShadowView.innerShadowRadius  = 10;
self.testInnerShadowView.innerShadowOpacity = 0;

// 注意, 为了可以添加多层阴影, 在这里必须显示的调用 -addInnerShadow
[self.testInnerShadowView addInnerShadow];

安装

使用Pod

pod 'MKInnerShadow'

手动安装

  1. 执行git clone https://github.com/SYFH/MKInnerShadow.git命令下载工具与Demo
  2. 复制MKInnerShadow文件夹到项目中
  3. 之后引用#import "UIView+InnerShadow.h"

联系

  • 如果程序有问题, 请提交issue
  • 如果有其他好的建议, [email protected]
  • 如果你感觉写的还不错, 请点击Star!

Latest podspec

{
    "name": "MKInnerShadow",
    "version": "1.0.0",
    "license": "MIT",
    "summary": "MKInnerShadowu662fu7528u6765u7ed8u5236u89c6u56feu7684u5185u9634u5f71u7684u5febu6377u5de5u5177.",
    "homepage": "https://github.com/SYFH/MKInnerShadow",
    "authors": {
        "SYFH": "SYFH"
    },
    "source": {
        "git": "https://github.com/SYFH/MKInnerShadow.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "MKInnerShadow/*.{h,m}"
}

Pin It on Pinterest

Share This