i found uilabel use set line spacing, no longer shows size of ellipsis if not enough, know how add ellipsis
let message:nsstring = "perhaps average student average intelligence." let attributedstring = nsmutableattributedstring(string: str string) let paragraphstyle = nsmutableparagraphstyle(); paragraphstyle.linespacing = 5 attributedstring.addattribute(nsparagraphstyleattributename, value: paragraphstyle, range: nsmakerange(0, message.length)) detaillabel.attributedtext = attributedstring
do mean rounded corners? if want rounded corners add
detaillabel.layer.cornerradius = detaillabel.frame.height / 2
Comments
Post a Comment