PLVFeedView
Objective-C
@interface PLVFeedView : UIView
@property (nonatomic, weak) id<PLVFeedViewDataSource> dataSource;
@property (nonatomic, strong, readonly) UICollectionView *collectionView;
// 获取复用视图
- (UIView <PLVFeedItemCustomViewDelegate>*)dequeueReusableFeedItemCustomViewWithIdentifier:(NSString *)identifier indexPath:(NSIndexPath *)indexPath;
// 初始化默认激活的视图
- (void)initActiveFeedItemView;
/// 滑动collectionView
/// @param next YES滑倒下一个item,NO滑动到上一个Item
- (void)collectionViewScrollToNextItem:(BOOL)next;
// 视图销毁前应及时调用clear方法,防止触发数据自动加载机制
- (void)clear;
@end
Swift
class PLVFeedView
Undocumented
-
Undocumented
Declaration
Objective-C
@property (nonatomic, weak) id<PLVFeedViewDataSource> dataSourceSwift
weak var dataSource: (any PLVFeedViewDataSource)! { get set } -
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UICollectionView *collectionView -
Undocumented
Declaration
Objective-C
- (UIView <PLVFeedItemCustomViewDelegate>*)dequeueReusableFeedItemCustomViewWithIdentifier:(NSString *)identifier indexPath:(NSIndexPath *)indexPath;Swift
func dequeueReusableFeedItemCustomView(withIdentifier identifier: Any!, indexPath: Any!) -> Any! -
Undocumented
Declaration
Objective-C
- (void)initActiveFeedItemView;Swift
func initActiveFeedItemView() -
滑动collectionView
Declaration
Objective-C
- (void)collectionViewScrollToNextItem:(BOOL)next;Swift
func collectionViewScroll(toNextItem next: Any!)Parameters
nextYES滑倒下一个item,NO滑动到上一个Item
-
Undocumented
Declaration
Objective-C
- (void)clear;Swift
func clear()
View on GitHub
PLVFeedView Class Reference