Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最大 2 行のテキストを表示できる UILabel があります。私はオートレイアウトを使用していません。IB で、"lines" プロパティを 2 に設定しました。Obj-C で表示される行数を取得するにはどうすればよいですか?
gist: UILabel のsizeWithFont:を呼び出し、フォントのlineHeightで除算します。