开发者

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜