1

I've set up scrollTopTop property in my UIScrollView to YES however, when I tap on my status bar it didn't work. Why is this?

I have a UIViewController called A and inside A I have a UIViewController B, which has the UIScrollView. Is this the reason why it's not working?

Rinju Jain
  • 1,694
  • 1
  • 14
  • 23
xonegirlz
  • 8,889
  • 19
  • 69
  • 127

3 Answers3

0

Make sure of somethings:

  • Scrollview is at the front.
  • Make sure it's re-enabled after you add/remove your status bar.
  • There is only one scrollview because many of them will prevent it from scrolling to top.
  • Make sure that B view at front as well of A view.

Sorry but the question has to have more details so that we can help :)

XIII
  • 2,036
  • 16
  • 25
0

UIViewController B should be added in UIViewController A. like this, when you added b.view in a, you should add this code : [self addChildViewController:b]

Noah
  • 1
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.

d c
  • 156
  • 1
  • 6