Calculating Font Size
i have UITextView ( 480 w * 320 h) where we can se开发者_C百科t various font size using font size picker and have a buffered UITextView ( 1800 w * 1200 h) . Let say if i set 30 font size for my first text view need to set font size for buffered text view . How can i calculate font size for buffered textview??
How do you "calculate" it? However you want. You'll have to rephrase that part of the question.
Here's one way to set the font size once you decide what to make it:
CGFloat fontSize = 16.0f;
UIFont* changedFont = [myuitextview.font fontWithSize:fontSize];
myuitextview.font = changedFont;
精彩评论