RBBaseLayoutView Class Reference
Inherits from | RBScrollView : UIScrollView |
---|---|
Conforms to | RBLayoutPositionerDelegate |
Declared in | RBBaseLayoutView.h |
positioner
The positioner that determines how the cells are positioned and sized.
@property (nonatomic, nonnull) RBLayoutPositioner *positioner
Discussion
The positioner that determines how the cells are positioned and sized.
Declared In
RBBaseLayoutView.h
animator
The animator to animate cells as they appear and disappear.
@property (nonatomic, nullable) RBLayoutAnimator *animator
Discussion
The animator to animate cells as they appear and disappear.
Declared In
RBBaseLayoutView.h
animateScrollOnly
Whether or not animation should occur during scrolling only.
@property (nonatomic) BOOL animateScrollOnly
Discussion
Whether or not animation should occur during scrolling only.
Declared In
RBBaseLayoutView.h
delegate
The delegate to be informed of appearance and positioning events.
@property (nonatomic, weak, nullable) id<RBBaseLayoutViewDelegate,RBScrollViewDelegate> delegate
Discussion
The delegate to be informed of appearance and positioning events.
Declared In
RBBaseLayoutView.h
visibleCells
An array of the cells that are currently visible.
@property (nonatomic, readonly, nonnull) RBFragmentedArray *visibleCells
Discussion
An array of the cells that are currently visible.
Declared In
RBBaseLayoutView.h
– cellFrameWithIndex:
The frame of the cell at the given index.
- (CGRect)cellFrameWithIndex:(NSUInteger)index
Parameters
index |
The index of the cell. |
---|
Return Value
The frame of the cell.
Discussion
The frame of the cell at the given index.
Declared In
RBBaseLayoutView.h
shouldAnimate
Whether or not an appearing or disappearing cell should animate.
@property (nonatomic, readonly) BOOL shouldAnimate
Discussion
Whether or not an appearing or disappearing cell should animate.
Declared In
RBBaseLayoutView.h
shouldDisableScrolling
Whether or not scrolling should be disabled. Override this to disable scrolling while you perform an update.
@property (nonatomic, readonly) BOOL shouldDisableScrolling
Discussion
Whether or not scrolling should be disabled. Override this to disable scrolling while you perform an update.
Declared In
RBBaseLayoutView.h
– setScrollEnabledNeedsUpdate
Notify the layout view to update whether scrolling is enabled or disabled
based on the value of shouldDisableScrolling
.
- (void)setScrollEnabledNeedsUpdate
Discussion
Notify the layout view to update whether scrolling is enabled or disabled
based on the value of shouldDisableScrolling
.
Declared In
RBBaseLayoutView.h
– cellWillPosition:withIndex:withFrame:
Called when a cell will be positioned with a new frame.
- (void)cellWillPosition:(nonnull __kindof UIView *)view withIndex:(NSUInteger)index withFrame:(CGRect)frame
Parameters
view |
The view of the cell. |
---|---|
index |
The index of the cell in the layout view. |
frame |
The new frame being applied to the cell. |
Discussion
Called when a cell will be positioned with a new frame.
Declared In
RBBaseLayoutView.h
– cellDidPosition:withIndex:withFrame:
Called when a cell was positioned with a new frame.
- (void)cellDidPosition:(nonnull __kindof UIView *)view withIndex:(NSUInteger)index withFrame:(CGRect)frame
Parameters
view |
The view of the cell. |
---|---|
index |
The index of the cell in the layout view. |
frame |
The new frame being applied to the cell. |
Discussion
Called when a cell was positioned with a new frame.
Declared In
RBBaseLayoutView.h
– cellWillAppear:withIndex:withFrame:
Called when a cell will appear.
- (void)cellWillAppear:(nonnull __kindof UIView *)view withIndex:(NSUInteger)index withFrame:(CGRect)frame
Parameters
view |
The view of the cell. |
---|---|
index |
The index of the cell in the layout view. |
frame |
The frame that the cell is appearing with. |
Discussion
Called when a cell will appear.
Declared In
RBBaseLayoutView.h
– cellDidAppear:withIndex:withFrame:
Called when a cell did appear.
- (void)cellDidAppear:(nonnull __kindof UIView *)view withIndex:(NSUInteger)index withFrame:(CGRect)frame
Parameters
view |
The view of the cell. |
---|---|
index |
The index of the cell in the layout view. |
frame |
The frame that the cell is appearing with. |
Discussion
Called when a cell did appear.
Declared In
RBBaseLayoutView.h
– cellWillDisappear:withIndex:
Called when a cell will disappear.
- (void)cellWillDisappear:(nonnull __kindof UIView *)view withIndex:(NSUInteger)index
Parameters
view |
The view of the cell. |
---|---|
index |
The index of the cell in the layout view. |
Discussion
Called when a cell will disappear.
Declared In
RBBaseLayoutView.h
– cellDidDisappear:withIndex:
Called when a cell did disappear.
- (void)cellDidDisappear:(nonnull __kindof UIView *)view withIndex:(NSUInteger)index
Parameters
view |
The view of the cell. |
---|---|
index |
The index of the cell in the layout view. |
Discussion
Called when a cell did disappear.
Declared In
RBBaseLayoutView.h