RichiePageScrollerViewDataSource
Objective-C
@protocol RichiePageScrollerViewDataSource <NSObject>
-(NSInteger) numberOfPagesInPageScrollerView:(RichiePageScrollerView *)pageScrollerView;
-(UIView *) pageScrollerView:(RichiePageScrollerView *)pageScrollerView pageAtIndex:(NSInteger)pageIndex;
-(CGFloat) pageScrollerView:(RichiePageScrollerView *)pageScrollerView widthOfPageAtIndex:(NSInteger)pageIndex; //!< Controls the width (or height in non-horizontalMode) of page. Height (or width) of page is used as returned by -pageScrollerView:pageAtIndex:, centered and respecting autoresizing masks.
@optional
-(CGFloat) pageScrollerView:(RichiePageScrollerView *)pageScrollerView paddingAfterPageAtIndex:(NSInteger)pageIndex;
-(void) pageScrollerView:(RichiePageScrollerView *)pageScrollerView didRemovePageView:(UIView *)view atIndex:(NSInteger)pageIndex; //!< Called after view has been removed from view hierarcy.
@end
Swift
protocol RichiePageScrollerViewDataSource : NSObjectProtocol
Undocumented
-
Undocumented
Declaration
Objective-C
-(NSInteger) numberOfPagesInPageScrollerView:(RichiePageScrollerView *)pageScrollerView;
Swift
func numberOfPages(in pageScrollerView: RichiePageScrollerView!) -> Int
-
Undocumented
Declaration
Objective-C
-(UIView *) pageScrollerView:(RichiePageScrollerView *)pageScrollerView pageAtIndex:(NSInteger)pageIndex;
Swift
func pageScrollerView(_ pageScrollerView: RichiePageScrollerView!, pageAt pageIndex: Int) -> UIView!
-
Undocumented
Declaration
Objective-C
- (CGFloat)pageScrollerView:(RichiePageScrollerView *)pageScrollerView widthOfPageAtIndex:(NSInteger)pageIndex;
Swift
func pageScrollerView(_ pageScrollerView: RichiePageScrollerView!, widthOfPageAt pageIndex: Int) -> CGFloat
-
Undocumented
Declaration
Objective-C
-(CGFloat) pageScrollerView:(RichiePageScrollerView *)pageScrollerView paddingAfterPageAtIndex:(NSInteger)pageIndex;
Swift
optional func pageScrollerView(_ pageScrollerView: RichiePageScrollerView!, paddingAfterPageAt pageIndex: Int) -> CGFloat
-
Undocumented
Declaration
Objective-C
- (void)pageScrollerView:(RichiePageScrollerView *)pageScrollerView didRemovePageView:(UIView *)view atIndex:(NSInteger)pageIndex;
Swift
optional func pageScrollerView(_ pageScrollerView: RichiePageScrollerView!, didRemovePageView view: UIView!, at pageIndex: Int)