Files
featherVoice/QXLive/Dynamic(语圈)/View/QXMenuPopView.h
2025-08-08 10:49:36 +08:00

35 lines
771 B
Objective-C

//
// QXMenuPopView.h
// QXLive
//
// Created by 启星 on 2025/5/28.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger) {
QXMenuPopViewTypeArrowTop = 0,
QXMenuPopViewTypeArrowBottom
}QXMenuPopViewType;
NS_ASSUME_NONNULL_BEGIN
@protocol QXMenuPopViewDelegate <NSObject>
@optional
-(void)didSelectedIndex:(NSInteger)index menuTitle:(NSString*)menuTitle;
@end
@interface QXMenuPopView : UIView
@property (nonatomic,strong)NSArray *dataArray;
@property (nonatomic,weak)id<QXMenuPopViewDelegate>delegate;
@property (nonatomic,assign)QXMenuPopViewType type;
-(instancetype)initWithPoint:(CGPoint)point;
-(instancetype)initWithPoint:(CGPoint)point width:(CGFloat)width height:(CGFloat)height;
-(void)showInView:(UIView *)view;
@end
NS_ASSUME_NONNULL_END