GrowingTextView
GrowingTextView copied to clipboard
GrowingTextView frame issure
hi , your code in the Method - (void)refreshHeight
,has a problem. The result of measureHeight
is a float value,should not assign to the local var newSizeH
which type is NSInteger. It may leads to the result smaller than the textview needs. you can fix it by NSInteger newSizeH = ceilf([self measureHeight]);
This is a total lifesaver. Sometime between iOS7 and iOS10, I just noticed, after the growing text view expands from one line to multiple, the text on the final line became invisible. This fixes the issue. Thanks @luoqisheng!