ios - Determining maximum font size for UITextView -


is possible determine maximum font size uitextview keeps texts inside without cropping, while containing text set , constant.

note: i'm using custom fonts, , swift.

you can calculate height of content .then resize frame.

cgsize strsize= [textview.text sizewithfont:[uifont systemfontofsize:17.0] constrainedtosize:cgsizemake(290.0,99999.0)]; frame.size.height = strsize.height 

Comments

Popular posts from this blog

php - Wordpress: Link a post to posts of another category manually -

delphi xe7 upload/download dropbox file using the rest client and show progress -

java - Get more than One value and display it -