Latest 0.0.1
Homepage https://github.com/xuzeyu/IBInspectable
License MIT
Platforms ios , requires ARC
Authors

在做应用的UI设计的时候,如果属性能够在Interface Builder的图形化界面进行设置,并且动态的预览到效果,那样无疑会 大大提高应用的开发效率。而XCode为我们提供了这样的一种方式,就是使用IBInspectable和IB_DESIGNABLE.
本项目就是基于IBInspectable,IB_DESIGNABLE和运行时的封装,实现xib中通过配置直接设置

  • 圆角(可实现圆角头像)
  • 边框
  • 阴影

效果图

调用

class 必须是子类(注:如果你没有自定义的子类,可以建立一些空的子类来代替)

其他

QQ:339283130
喜欢的帮忙点个星吧=-=!

Latest podspec

{
    "name": "IBInspectable",
    "version": "0.0.1",
    "summary": "Category for UIView",
    "description": "this project provide a category for UIView,You can set the graphics radius in IB",
    "homepage": "https://github.com/xuzeyu/IBInspectable",
    "license": "MIT",
    "authors": {
        "u5f90u6cfdu5b87": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/xuzeyu/IBInspectable.git",
        "tag": "0.0.1"
    },
    "source_files": "IBInspectable/IBInspectable/Class/**/*.{h,m}",
    "exclude_files": "Classes/Exclude",
    "requires_arc": true
}

Pin It on Pinterest

Share This