以下は私のtextViewのコードですがsizeToFit
、textViewの高さをコンテンツテキストの2倍以上にしています。解決策を教えてください
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];