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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -