IOS 9.1 UIScrollView leaving blank space

I have a ViewController with a hierarchy as follows:

  • UIViewController
    • UIView
      • UIScrollView
        • UIView
          • UIImageView
          • UILabel

The layout is such that the UIScrollView fills the screen. There is no additional logic on this ViewController, such as scrolling a program, listening to scrolling, etc.

When I run this on the iOS 9.0 simulator, the layout is correctly UIImageView and the UIImageView drawn to the top.

But when I run it on the iOS 9.1 simulator, the original space is between the top and the image. When you touch UIScrollView it corrects itself by scrolling that the UIImageView is on par with the brand.

Setting automaticallyAdjustsScrollViewInsets has no effect (presumably because scrollview is not in my root).

My question is: what is different from scrolling iOS 9.1, what will be the reason for this, and what is the work? This bothers me as it is not a very complicated layout that I am trying to use.

Edit

A screenshot of my hierarchy and the restrictions applied to them may help. limitations

+6
source share
1 answer

I think the problem may be limitations. try to get rid of them and add them back, one at a time as needed.

0
source

All Articles