39 lines
959 B
Objective-C
39 lines
959 B
Objective-C
//
|
|
// QXMeetLotteryView.h
|
|
// QXLive
|
|
//
|
|
// Created by 启星 on 2025/9/2.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol QXMeetLotteryViewDelegate <NSObject>
|
|
- (void)lotteryWheelDidStopAtIndex:(NSInteger)index;
|
|
@end
|
|
|
|
@interface QXMeetLotteryView : UIView
|
|
|
|
@property (nonatomic, weak) id<QXMeetLotteryViewDelegate> delegate;
|
|
@property (nonatomic, strong) NSArray *prizes; // 奖品数据源
|
|
@property (nonatomic, assign) NSInteger finalPrizeIndex; // 最终奖品索引
|
|
|
|
- (void)startLotteryAnimation;
|
|
- (void)stopLotteryAnimation;
|
|
|
|
@end
|
|
|
|
@interface QXMeetLotterySubView : UIView
|
|
|
|
@property (nonatomic,strong)UIImageView *giftBgImageView;
|
|
@property (nonatomic,strong)UIImageView *giftImageView;
|
|
@property (nonatomic,strong)UIImageView *giftNameBgImageView;
|
|
@property (nonatomic,strong)UILabel *giftNameLabel;
|
|
@property (nonatomic,strong)UIButton *giftCoinBtn;
|
|
@property (nonatomic,strong)QXDrawGiftModel *model;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|