0%

textView.scrollEnabled 会导致内存问题

UITextView 高度很高并且设置 scrollEnabled 会有内存问题

UITextView scrollEnabled will cause memory issue

1
2
3
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 200, 20000) textContainer:nil];
textView.scrollEnabled = NO;
[self.view addSubview:textView];