CustomDropMenuView.h 954 Bytes
Newer Older
admin's avatar
admin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
//
//  CustomDropMenuView.h
//  redstar
//
//  Created by admin on 15/10/25.
//  Copyright © 2015年 ZWF. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CustomDropMenuView;

@protocol CustomDropMenuDelegate <NSObject>

@optional
- (void)dropdownMenuDidDismiss:(CustomDropMenuView *)menu;
- (void)dropdownMenuDidShow:(CustomDropMenuView *)menu;

@end

@interface CustomDropMenuView : UIView

@property (nonatomic, weak) id<CustomDropMenuDelegate> delegate;

+ (instancetype)defaultMenuView;

/**
 *  显示
 */
- (void)showFrom:(UIView *)from;
/**
 *  销毁
 */
- (void)dismiss;

/**
 *  内容
 */
@property (nonatomic, strong) UIView *content;
/**
 *  内容控制器
 */
@property (nonatomic, strong) UIViewController *contentController;
44 45 46 47 48 49

@property (nonatomic, assign) CGFloat showTop;
@property (nonatomic, assign) CGFloat showLeft;
@property (nonatomic, assign) CGFloat showRight;
@property (nonatomic, assign) CGFloat showHeight;

admin's avatar
admin committed
50 51

@end