Skip to content

关于文字高度改变会自动调用的问题 #4

@jniosdeveloper

Description

@jniosdeveloper

老师:
self.inputCommentView.yz_textHeightChangeBlock = ^(NSString *text,CGFloat textHeight){
// 设置底部条的高度 = 文字高度 + textView距离上下间距约束
NSLog(@"textHeight::%f",textHeight);
// _bottomView.JN_height = textHeight + 10;
};

// 设置文本框最大行数
self.inputCommentView.maxNumberOfLines = 4;

这个block怎么没有被执行,导致我的底部的高度不能够根据文字的行数进行改变,请问是哪儿的问题呢???

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