YYText icon indicating copy to clipboard operation
YYText copied to clipboard

_textView.textVerticalAlignment = YYTextVerticalAlignmentCenter 没有效果呀

Open hydyy opened this issue 7 years ago • 4 comments

  • (YYTextView *)textView { if (!_textView) { _textView = [YYTextView new]; _textView.backgroundColor = [UIColor whiteColor]; _textView.textAlignment = NSTextAlignmentCenter; _textView.textVerticalAlignment = YYTextVerticalAlignmentCenter; _textView.textContainerInset = UIEdgeInsetsMake(10, 10, 10, 10);

    } return _textView; }

光标是在中间了,可是文字没有在中间。、

hydyy avatar Jul 18 '16 06:07 hydyy

我也遇到这个情况了

fengqiangboy avatar Jul 20 '16 06:07 fengqiangboy

额 有啥解决方案不?

hydyy avatar Jul 20 '16 09:07 hydyy

我直接设置contentInset了 没用这个属性了

fengqiangboy avatar Jul 20 '16 09:07 fengqiangboy

try yy_baselineOffset

billxie1988 avatar Feb 15 '22 02:02 billxie1988