刘威振
Results
1
comments of
刘威振
这样就可以了: ``` __weak __typeof(self) weakSelf = self; [self.textView addObserverBlockForKeyPath:@"textLayout.textBoundingSize" block:^(id _Nonnull obj, id _Nullable oldVal, id _Nullable newVal) { CGFloat height = [[self.textView textLayout] textBoundingSize].height; weakSelf.textView.height = MIN(kMaxHeight, MAX(50, height));...