我在滚动视图中有一个文本视图。在 viewDidLoad 我改变了 textview 的大小:
description.text = [request valueForKey:@"Description"];
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);
dispatch_async(queue, ^{
dispatch_sync(dispatch_get_main_queue(), ^{
CGRect rect = description.frame;
rect.size.height = description.contentSize.height;
description.frame = rect;
});
});
但是当我开始滚动scrollview的时候,textView的大小又回到了dafault怎么回事?