下面是我的 textView 代码,但sizeToFit
使 textView 的高度是其内容文本的两倍多。请提供任何解决方案
UITextView *paragraphView = [[UITextView alloc] initWithFrame: CGRectMake(10, 10, 295, 30)];
[paragraphView setContentMode: UIViewContentModeScaleToFill];
[paragraphView setScrollEnabled: NO];
[paragraphView setEditable: NO];
[paragraphView setText: @"hello there ..........hii i am here....."];
[paragraphView setFont: [UIFont systemFontOfSize: 30]];
[self.view addSubview: paragraphView];
[paragraphView sizeToFit];