问题如题目:
附赠获取行数的办法:
CGSize size = [m_textView.text sizeWithFont:[m_textView font]];
int length = size.height;
int colomNumber = m_textView.contentSize.height/length;
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
http://fnoz.xyz/cell_height_str/
里面有一个 /获取字符串换行后的高度/的部分。