Xcode6.2中使用Masonry的出现的问题

在Xcode6.2中使用首先导入“Masonry.h”包。

ps1:在xcode6.2中,只能使用 make_Constraints:^(MASConstraintMaker *make)block 方法。在xcode6.2以下可以实现make_Constraints:^(MASConstraintMaker *make)block 和makeConstraints:^(MASConstraintMaker *make)block 俩个方法。

ps2:在Masonry中配置view之间的距离的时候,可以使用make.top.equalTo(self.view.top).offset(padding) 与make.top.equalTo(self.view.mas_top).offset(padding);来设置适配时候,设置view之间的顶部的距离。但是,在xcode6.2中,只能使用make.top.equalTo(self.view.mas_top).offset(padding)。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容