35 lines
771 B
C
35 lines
771 B
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
|