TKPagedScrollView Class Reference
| Inherits from | UIView |
| Declared in | TKPagedScrollView.h TKPagedScrollView.m |
Overview
TKPagedScrollView a scroll view container that holds a UIScrollView. The view acts like a UIScrollView that has pages of length longer than the actual scroll view frame.
Tasks
-
– initWithFrame:direction: -
scrollDirectionproperty -
animatingPagesproperty -
scrollViewproperty -
pagesproperty -
currentPageproperty -
delegateproperty -
– scrollToPreviousPage -
– scrollToNextPage -
– scrollToPage:animated: -
– updatePagesLayout
Properties
animatingPages
A flag that indicates if the current page is changing.
@property (nonatomic, readonly) BOOL animatingPagesDeclared In
TKPagedScrollView.hcurrentPage
The current page
@property (nonatomic, assign) NSInteger currentPageDeclared In
TKPagedScrollView.hdelegate
The delegate of the paged-scroll-view object.
@property (nonatomic, weak) id<TKPagedScrollViewDelegate> delegateDeclared In
TKPagedScrollView.hpages
An array of views that are laid out to form the scroll view. The page size of each view is determined based on the size of the view.
@property (nonatomic, strong) NSArray *pagesDeclared In
TKPagedScrollView.hscrollDirection
The direction a TKPagedScrollView would layout pages in.
@property (nonatomic, readonly) TKPageScrollDirection scrollDirectionDeclared In
TKPagedScrollView.hscrollView
Access to the underlying UIScrollView. Do not take the UIScrollView’s delegate.
@property (nonatomic, strong) UIScrollView *scrollViewDeclared In
TKPagedScrollView.hInstance Methods
initWithFrame:direction:
Initializes and returns a paged scroll view.
- (id)initWithFrame:(CGRect)frame direction:(TKPageScrollDirection)directionParameters
- frame
The frame for the view.
- direction
The direction that scroll view will scroll.
Return Value
A newly created paged scroll view or nil.
Declared In
TKPagedScrollView.hscrollToPage:animated:
Scroll to a specific page.
- (void)scrollToPage:(NSInteger)page animated:(BOOL)animatedParameters
- page
The page that will become the current one.
- animated
Whether the change is animated or not.
Declared In
TKPagedScrollView.hscrollToPreviousPage
Scroll to the previous page.
- (void)scrollToPreviousPageDeclared In
TKPagedScrollView.hupdatePagesLayout
Resets the layout of the pages.
- (void)updatePagesLayoutDeclared In
TKPagedScrollView.h