Skip to content

使用MLEmojiLabel的时候不能masonry约束吗? #32

@mxpasser

Description

@mxpasser

@molon 感谢MLEmojiLabel库。有个问题请教,我用masonry给label加了约束,但没有显示出来,

    [_tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(15);
        make.top.equalTo(self.contentView).offset(5);
        make.right.equalTo(self.contentView).offset(-15);
        make.height.equalTo(@40);
    }];

用frame的方式可以,
_tipLabel.frame = CGRectMake(15, 5, self.contentView.width - 30, 40);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions