Declared in UIScrollView+BFKit.h

Overview

This category adds some useful methods to UIScrollView

Class Methods

initWithFrame:contentSize:clipsToBounds:pagingEnabled:showScrollIndicators:delegate:

+ (instancetype _Nonnull)initWithFrame:(CGRect)frame contentSize:(CGSize)contentSize clipsToBounds:(BOOL)clipsToBounds pagingEnabled:(BOOL)pagingEnabled showScrollIndicators:(BOOL)showScrollIndicators delegate:(id<UIScrollViewDelegate> _Nullable)delegate
Discussion

Create an UIScrollView and set some parameters

Parameters

frame

ScrollView’s frame

contentSize

ScrollView’s 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’s delegate

Return Value

Returns the created UIScrollView

Declared In

UIScrollView+BFKit.h