个播房上下滑动

This commit is contained in:
chenguilong
2022-07-11 19:05:09 +08:00
parent 521884c1b7
commit f6a3b8c6dd
8 changed files with 510 additions and 4 deletions

View File

@@ -0,0 +1,33 @@
//
// AnchorRoomScrollView.h
// xplan-ios
//
// Created by GreenLand on 2022/7/11.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class AnchorRoomScrollView;
@protocol AnchorRoomScrollViewDelegate <NSObject>
- (void)anchorScrollView:(AnchorRoomScrollView *)anchorScrollView currentPlayerIndex:(NSInteger)index;
@end
@interface AnchorRoomScrollView : UIScrollView
@property (nonatomic, assign) id<AnchorRoomScrollViewDelegate> anchorScrollDelegate;
@property (nonatomic, assign) NSInteger index;
@property (nonatomic, strong) UIImageView *upperImageView;
@property (nonatomic, strong) UIImageView *middleImageView;
- (instancetype)initWithFrame:(CGRect)frame;
- (void)updateForLives:(NSMutableArray *)livesArray withCurrentIndex:(NSInteger) index;
@end
NS_ASSUME_NONNULL_END