Class UIScrollViewContentInsetAdjustmentBehavior


  • public final class UIScrollViewContentInsetAdjustmentBehavior
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Always
      contentInset is always adjusted by the scroll view's safeAreaInsets
      static long Automatic
      Similar to .scrollableAxes, but for backward compatibility will also adjust the top & bottom contentInset when the scroll view is owned by a view controller with automaticallyAdjustsScrollViewInsets = YES inside a navigation controller, regardless of whether the scroll view is scrollable
      static long Never
      contentInset is not adjusted
      static long ScrollableAxes
      Edges for scrollable axes are adjusted (i.e., contentSize.width/height > frame.size.width/height or alwaysBounceHorizontal/Vertical = YES)
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Automatic

        public static final long Automatic
        Similar to .scrollableAxes, but for backward compatibility will also adjust the top & bottom contentInset when the scroll view is owned by a view controller with automaticallyAdjustsScrollViewInsets = YES inside a navigation controller, regardless of whether the scroll view is scrollable
        See Also:
        Constant Field Values
      • ScrollableAxes

        public static final long ScrollableAxes
        Edges for scrollable axes are adjusted (i.e., contentSize.width/height > frame.size.width/height or alwaysBounceHorizontal/Vertical = YES)
        See Also:
        Constant Field Values
      • Always

        public static final long Always
        contentInset is always adjusted by the scroll view's safeAreaInsets
        See Also:
        Constant Field Values