必须使用mas_才能正常运行,
//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
都加过。我怀疑环信的SDK与Masonry有冲突
//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
都加过。我怀疑环信的SDK与Masonry有冲突
解决方案 »
- 新手入门,如何声明一个数组???
- [[UIApplication sharedApplication] keyWindow] addSubView aView,在viewBased程序中不成功
- VMware、
- 求用纯代码做界面的源代码
- IOS 蓝牙键盘
- ios小问题,请大家顺便帮帮忙,没想通
- 如何用正则式分离出 A B C D 选项,android 分离可以,但ios全空谢谢
- 大家好,请教一个解析爱奇艺m3u8视频地址的问题,谢谢
- 苹果UIwebView内嵌网页上js的history.back()不好用
- iOS Swift 的NSSetUncaughtExceptionHandler全局异常捕获不回调
- iOS App Store源码
- 大家都来扒一扒iOS开发过程中遇到的一些棘手的问题
make.top.equalTo(superview.mas_top).with.offset(padding.top); //with is an optional semantic filler
make.left.equalTo(superview.mas_left).with.offset(padding.left);
make.bottom.equalTo(superview.mas_bottom).with.offset(-padding.bottom);
make.right.equalTo(superview.mas_right).with.offset(-padding.right);
}];这段是masnory demo里面现成的代码,equalTo方法里面本来就应该是mas_ 开头的属性吧