0
点赞
收藏
分享

微信扫一扫

ios Masonry中方便操作的一些配置

科牛 2021-09-29 阅读 54
iOS OC开发
一、去掉mas_前缀

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
    #import <QuartzCore/QuartzCore.h>

    //define this constant if you want to use Masonry without the 'mas_' prefix
    #define MAS_SHORTHAND

    //define this constant if you want to enable auto-boxing for default syntax
    #define MAS_SHORTHAND_GLOBALS

    #import "Masonry.h"
#endif
举报

相关推荐

0 条评论