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?
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
Post a Comment