35 lines
787 B
C
35 lines
787 B
C
|
|
//
|
||
|
|
// QXRoomPKResultView.h
|
||
|
|
// QXLive
|
||
|
|
//
|
||
|
|
// Created by 启星 on 2025/7/3.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import <UIKit/UIKit.h>
|
||
|
|
typedef NS_ENUM(NSInteger) {
|
||
|
|
/// pk胜利
|
||
|
|
QXRoomPKResulttTypeVictory = 0,
|
||
|
|
/// pk失败
|
||
|
|
QXRoomPKResulttTypeDefeated,
|
||
|
|
/// 平局
|
||
|
|
QXRoomPKResulttTypeTie,
|
||
|
|
}QXRoomPKResulttType;
|
||
|
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
|
||
|
|
@interface QXRoomPKResultView : UIView
|
||
|
|
-(instancetype)initWithType:(QXRoomPKResulttType)type;
|
||
|
|
|
||
|
|
@property (nonatomic,assign)QXRoomPKResulttType type;
|
||
|
|
|
||
|
|
|
||
|
|
-(void)setResultWithVictory_name:(NSString*)victory_name
|
||
|
|
victory_cover:(NSString*)victory_cover
|
||
|
|
defeated_name:(NSString*)defeated_name
|
||
|
|
defeated_cover:(NSString*)defeated_cover;
|
||
|
|
|
||
|
|
-(void)showInView:(UIView *)view;
|
||
|
|
-(void)hide;
|
||
|
|
@end
|
||
|
|
|
||
|
|
NS_ASSUME_NONNULL_END
|