Controller controller issue in container controller

Phase 1:

I have a controller built into the navigation controller. I am trying to create a custom container view inside this controller.

Phase 2:

I created a xib UIView that contains the scrollView that I pass in the controller initializer and pass that controller to add to the user container.

The scroll insert automatically changes to y: -64.

Summary of what I tried:

From this What does addChildViewController actually do? I know that the parent controller passes the navigation to the child controller. This creates this insertion setting.

Then I tried to disable the property

automaticallyAdjustsScrollViewInsets

controller to false but still not working

iOS 7: , AdjustsScrollViewInsets .

, , . , . , UIViewController?

+4
1

. , . , .

: , () , , .

0

Source: https://habr.com/ru/post/1669134/


All Articles