美文网首页
Xcode6.2中使用Masonry的出现的问题

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

作者: oneDemo | 来源:发表于2015-03-27 23:38 被阅读505次

    在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)。

    相关文章

      网友评论

          本文标题:Xcode6.2中使用Masonry的出现的问题

          本文链接:https://www.haomeiwen.com/subject/ntjnxttx.html