RichiePageScrollerView

Objective-C

@interface RichiePageScrollerView : RichieIndexedContainerView

Swift

class RichiePageScrollerView : RichieIndexedContainerView

@brief View for scrolling between pages that are UIViews.

RichiePageScrollerView implements a scrolling view which contains “pages” or different views. Views can have different widths, as returned by dataSource method pageScrollerView:widthOfPageAtIndex:.

Only a subset of views is kept in memory, very much like UITableView handles cells in a long table.

  • Undocumented

    Declaration

    Objective-C

    - (void)invalidate;

    Swift

    func invalidate()
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSObject<RichiePageScrollerViewDataSource> *dataSource

    Swift

    unowned(unsafe) var dataSource: (any RichiePageScrollerViewDataSource)! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSObject<RichiePageScrollerViewDelegate> *delegate

    Swift

    unowned(unsafe) var delegate: (any RichiePageScrollerViewDelegate)! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSInteger currentPageIndex

    Swift

    var currentPageIndex: Int { get set }
  • Undocumented

    Declaration

    Objective-C

    -(void) setCurrentPageIndex:(NSInteger)newPageIndex animated:(BOOL)animated;

    Swift

    func setCurrentPageIndex(_ newPageIndex: Int, animated: Bool)
  • Undocumented

    Declaration

    Objective-C

    -(void) setCurrentPageIndex:(NSInteger)newPageIndex userGesture:(BOOL)userGesture;

    Swift

    func setCurrentPageIndex(_ newPageIndex: Int, userGesture: Bool)
  • Undocumented

    Declaration

    Objective-C

    -(void) setScrollingEnabled:(BOOL)state;

    Swift

    func setScrollingEnabled(_ state: Bool)
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSInteger pageBufferSize;

    Swift

    var pageBufferSize: Int { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pagePadding;

    Swift

    var pagePadding: CGFloat { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL horizontalMode;

    Swift

    var horizontalMode: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL snapToPage;

    Swift

    var snapToPage: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL centerContent;

    Swift

    var centerContent: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGPoint contentOffset

    Swift

    var contentOffset: CGPoint { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIView *currentPageView

    Swift

    var currentPageView: UIView! { get }
  • Undocumented

    Declaration

    Objective-C

    -(void) notePageWidthChangedAtIndex:(NSInteger)pageIndex;

    Swift

    func notePageWidthChanged(at pageIndex: Int)
  • Undocumented

    Declaration

    Objective-C

    -(void) noteAllPageWidthsChanged;

    Swift

    func noteAllPageWidthsChanged()
  • Undocumented

    Declaration

    Objective-C

    -(CGPoint) scrollViewContentOffsetForPageAtIndex:(NSInteger)pageIndex;

    Swift

    func scrollContentOffsetForPage(at pageIndex: Int) -> CGPoint
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIScrollView *scrollView;

    Swift

    var scrollView: UIScrollView! { get }
  • Undocumented

    Declaration

    Objective-C

    -(CGRect) frameForPageViewAtIndex:(NSInteger)pageIndex;

    Swift

    func frameForPageView(at pageIndex: Int) -> CGRect
  • Undocumented

    Declaration

    Objective-C

    -(void) overrideScrollGesturesWithGestureRecognizer:(UIGestureRecognizer *)otherRecognizer;

    Swift

    func overrideScrollGestures(with otherRecognizer: UIGestureRecognizer!)