1

我已经在我的 YES 中设置了 scrollTopTop 属性,UIScrollView但是当我点击状态栏时它不起作用。为什么是这样?

我有一个UIViewController叫 A ,在 AI 里面有一个UIViewController B,里面有UIScrollView. 这是它不起作用的原因吗?

4

3 回答 3

0

I had an app where scrollsToTop was working. Later on, I added a UICollectionView and scrollsToTop stopped working. After tracking down the offending revision I had to set UICollectionView.scrollsToTop = NO. I overlooked the fact that UICollectionView also inherits from UIScrollView.

于 2014-07-25T15:15:36.633 回答
0

UIViewController B 应该添加到 UIViewController A 中。像这样,当您在 a 中添加 b.view 时,您应该添加以下代码:[self addChildViewController:b]

于 2014-05-29T02:46:06.047 回答
0

确保一些事情:

  • 滚动视图在前面。
  • 添加/删除状态栏后,请确保它已重新启用。
  • 只有一个滚动视图,因为其中许多会阻止它滚动到顶部。
  • 确保前面的 B 视图和 A 视图一样。

抱歉,问题必须提供更多详细信息,以便我们提供帮助:)

于 2012-07-16T07:33:45.023 回答