UIScrollView

class UIScrollView : UIView, NSCoding, UIFocusItemScrollableContainer

This extesion adds some useful functions to UIScrollView.

  • Create an UIScrollView and set some parameters.

    Declaration

    Swift

    public convenience init(frame: CGRect, contentSize: CGSize, clipsToBounds: Bool, pagingEnabled: Bool, showScrollIndicators: Bool, delegate: UIScrollViewDelegate?)

    Parameters

    frame

    ScrollView frame.

    contentSize

    ScrollView content size.

    clipsToBounds

    Set if ScrollView has to clips to bounds.

    pagingEnabled

    Set if ScrollView has paging enabled.

    showScrollIndicators

    Set if ScrollView has to show the scroll indicators, vertical and horizontal.

    delegate

    ScrollView delegate.