// // CustomDropMenuView.h // redstar // // Created by admin on 15/10/25. // Copyright © 2015年 ZWF. All rights reserved. // #import @class CustomDropMenuView; @protocol CustomDropMenuDelegate @optional - (void)dropdownMenuDidDismiss:(CustomDropMenuView *)menu; - (void)dropdownMenuDidShow:(CustomDropMenuView *)menu; @end @interface CustomDropMenuView : UIView @property (nonatomic, weak) id delegate; + (instancetype)defaultMenuView; /** * 显示 */ - (void)showFrom:(UIView *)from; /** * 销毁 */ - (void)dismiss; /** * 内容 */ @property (nonatomic, strong) UIView *content; /** * 内容控制器 */ @property (nonatomic, strong) UIViewController *contentController; @property (nonatomic, assign) CGFloat showTop; @property (nonatomic, assign) CGFloat showLeft; @property (nonatomic, assign) CGFloat showRight; @property (nonatomic, assign) CGFloat showHeight; @end