view of the page broken when personal hotspot feature turned on

前端 未结 2 721
野的像风
野的像风 2021-01-16 10:43

When I turn on personal hot spot connection, my entire layout pushed down but only horizontal scrollview stays at original place due to this reason the view of the page look

相关标签:
2条回答
  • 2021-01-16 10:50

    You should check the autoresize mask property of your views (and possible your subviews).

    If the autoresize mask allows the view to stretch, and it is not pinned to both the top and bottom, the view will resize as expected under this circumstance.

    0 讨论(0)
  • 2021-01-16 10:59

    Set the autoresizingMask property of any element to None so that the elements look exactly the same relative to each others.

    someView.autoresizingMask = UIViewAutoresizingNone;
    
    0 讨论(0)
提交回复
热议问题