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

打扰一下,只能用frame设置 吗,假如下面再接贴着一个collectionView用于展示所有可以选择的标签,这种情况下如果使用autolayout进行约束 啊 #1

Open
songxing10000 opened this issue Oct 31, 2016 · 1 comment

Comments

@songxing10000
Copy link

No description provided.

@songxing10000
Copy link
Author

貌似已经解决了,不知道这是不是正确的做法,求解答

#pragma mark - JLTagWriteViewDelegate
- (void)tagWriteChangeView:(JLTextFieldTagView *)tagView {

    [tagView.subviews enumerateObjectsWithOptions:NSEnumerationReverse usingBlock:^(__kindof UIView * _Nonnull subV, NSUInteger idx, BOOL * _Nonnull stop) {

        if ([subV isKindOfClass:NSClassFromString(@"JLTextField")]) {
            [UIView animateWithDuration:0.25 animations:^{

                self.tagViewHeightConstraint.constant = CGRectGetMaxY(subV.frame)+8;
            }];
            *stop = YES;
        }
    }];
}

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

1 participant