我正在使用 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];
哪里有问题?
谢谢卢卡