Skip to content

Conversation

@liwenDeng
Copy link

1.当直接使用_inputView.text进行赋值时,进行高度自适应。(运用场景:如加载上次未发送消息)
2. missing [super awakeFromNib]

@Smiacter
Copy link

我也遇到了,我是直接在.h中加了一个属性inputText,在.m中加了setter方法
// YZInputView.h // ... /// Textview的文字 - add by kj(解决在手动设置text时placeholder未走文字监听变化的问题) @property (nonatomic, copy) NSString *inputText;
`
// YZInputView.m
// ...

  • (void)setInputText:(NSString *)inputText {
    _inputText = inputText;
    self.text = inputText;
    [self textDidChange];
    }
    `

// 调用 instance.inputText = 'balabala....'

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

Successfully merging this pull request may close these issues.

2 participants