Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mxpasser opened this issue Aug 12, 2016 · 8 comments
Open

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

mxpasser opened this issue Aug 12, 2016 · 8 comments

Comments

@mxpasser
Copy link

@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);

@molon
Copy link
Owner

molon commented Aug 16, 2016

@mxpasser 呃 你这里看起来是通过约束已经决定了label的frame了啊。 我没用过masonry,有时间我试试看吧,最近比较忙。如果MLEmojiLabel没用太深入的话,可以试试MLLabel,这个库我以后基本不维护了。

@mxpasser
Copy link
Author

@molon 好的,谢谢你。

@yaqi0212
Copy link

请问一下,如何动态的改变链接的颜色呢?

@jerroy
Copy link

jerroy commented Jan 12, 2017

您好 文字中的可点击的字体颜色都只能一样吗?

@molon
Copy link
Owner

molon commented Jan 12, 2017

@yaqi0212 @jerroy linkAttributesactiveLinkAttributes,我也是刚查的。本库继承于https://github.com/TTTAttributedLabel/TTTAttributedLabel ,这些可以去查看其用法。

@jerroy
Copy link

jerroy commented Jan 13, 2017

谢了

@SnowWolf817
Copy link

addLinkToTransitInformation 后,点击整个label消失了,是什么问题呢?之前旧版的MLEmojiLabel没有这个问题。

@SnowWolf817
Copy link

用sdautolayout做的约束

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants