【发布时间】:2012-05-29 14:24:59
【问题描述】:
我正在使用 UIScrollView 进行测试,并在其中放置了一个 UILabel。 关键是我试图滚动到底部以阅读整个 UIlabel,但是一旦我停止向上拖动,滚动视图就会向下返回(橡皮筋效果)并且我无法阅读最后三行文本。
scrollView.backgroundColor = [UIColor redColor];
scrollView.contentSize = CGSizeMake(320, 600);
UILabel *lbltestScroll = [[UILabel alloc]initWithFrame:CGRectMake(0,100,320,600)];
lbltestScroll.text =@"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.";
lbltestScroll.lineBreakMode = UILineBreakModeWordWrap;
lbltestScroll.numberOfLines = 0;
[scrollView addSubview:lbltestScroll];
问题出在哪里?
谢谢 卢卡
【问题讨论】:
标签: uiscrollview uilabel