ios - How to draw a non-rectangle UILabel with paragraph truncation at the end? -


i need show body of text similar 1 shown below , limited red non-rectangular area. rob's answer this question pretty answers question well, need truncate @ tail of paragraph when text long.

extra question: possible set minimum font size similar uilabel?

enter image description here

try using nsstring::sizewithfont:constrainedtosize method documented here. can specify fontsize , maximum size text.

you can calculate minimum font size using nsstring::sizewithfont:minfontsize:actualfontsize:forwidth:linebreakmode: method.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -