简体   繁体   English

UITextView中的字体大小很小

[英]font size in UITextView is little small

How can i make the font size of text in UITextView to max so that it is readable easily. 我如何才能使UITextView中的文本的字体大小最大,以便易于阅读。

Currently i am using this one and i have tried all the UIFonts but all are unreadable. 目前,我正在使用此工具,并且我已经尝试了所有的UIFonts,但都不可读。

self.textView.font = [UIFont fontWithName:@"Georgia-Bold" size:12];

Any ideas how to use the font size bigger without using UIFonts . 任何不使用UIFonts如何使用更大字体的想法

Have two UITextView and their sizes are 有两个UITextView,它们的大小是

self.textView = [[[UITextView alloc] initWithFrame:CGRectMake(10, 283, 300, 55)]autorelease];


self.textView = [[[UITextView alloc] initWithFrame:CGRectMake(10, 339, 300, 80)]autorelease];

Text font size is smaller wants little bigger so that it is readable easily and fits in this UITextViews. 较小的文本字体大小要大一些,以便易于阅读并适合此UITextViews。

设置大字体时,可以使用UILabel的属性AdjustsFontSizeToFitWidth

self.textView.font = [UIFont fontWithName:@"System" size:16];

您是否尝试过“系统”,我认为这是默认字体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM