NSDictionary *fontDic = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont systemFontOfSize:17],NSFontAttributeName, nil];
CGRect rect = [movie.plot_simple boundingRectWithSize:CGSizeMake(375, 0) options:NSStringDrawingUsesLineFragmentOrigin attributes:fontDic context:nil];
self.scrollView.contentSize = CGSizeMake(self.view.frame.size.width, rect.size.height + 290 + 64);
// scrollView.contentSize的高度要加上文本距顶端的高度再微调
// 文本的高度要与设置的矩形框高度相同
self.plotLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 290, 335, rect.size.height)];
self.plotLabel.font = [UIFont systemFontOfSize:17];
self.plotLabel.numberOfLines = 0;
self.plotLabel.text = movie.plot_simple;
[self.plotLabel sizeToFit];
以上所有