【发布时间】:2016-04-09 08:32:48
【问题描述】:
我不明白为什么我的滚动视图没有加载到我告诉它加载的坐标上。我使用以下代码加载子视图:
view.frame = CGRectMake(scrollView.bounds.width * CGFloat(i), 0, scrollView.bounds.width, scrollView.bounds.height)
scrollView.addSubview(view)
但是它并没有像我期望的那样完全触及滚动视图的顶部:
但是当我开始与我的子视图交互时,它会飞到我想要的位置:
【问题讨论】:
标签: ios iphone swift uiscrollview