// // RQMultiButtons.h // jiaPei // // Created by 张嵘 on 2018/12/26. // Copyright © 2018 JCZ. All rights reserved. // #import @protocol RQMultiButtonsDelegate; typedef NS_ENUM(NSUInteger, RQMultiButtonsType) { RQMultiButtonsType_ = 0, }; @interface RQMultiButtons : UIView @property (nonatomic, assign) id delegate; @property (nonatomic, strong) NSMutableArray *customButtons; // The radius from center point to each share button @property (nonatomic, assign) NSInteger radius; // Bubble button radius @property (nonatomic, assign) NSInteger bubbleRadius; // Define if bubbles are currently animating (showing or hiding) @property (nonatomic, assign) BOOL isAnimating; // Define if view will dismiss when user taps on background (Default: YES) @property (nonatomic, assign) BOOL dismissOnBackgroundTap; @property (nonatomic, weak) UIView *parentView; // The fader view alpha, by default is 0.15 @property(nonatomic, assign) CGFloat faderAlpha; // The fader view background color, default is black @property (nonatomic, strong) UIColor *faderColor; - (instancetype)initWithPoint:(CGPoint)point radius:(NSInteger)radiusValue inView:(UIView *)inView; // Share bubbles will appear in UIWindow instance - (instancetype)initCenteredInWindowWithRadius:(NSInteger)radiusValue; - (void)show; - (void)hide; - (void)addCustomButtonWithIcon:(UIImage *)icon title:(NSString *)title backgroundColor:(UIColor *)color andButtonId:(NSInteger)buttonId; @end @protocol RQMultiButtonsDelegate @optional // On buttons pressed - (void)rqMultiButtons:(RQMultiButtons *)multiButtons tappedButtonWithType:(RQMultiButtonsType)buttonType; // On bubbles hide - (void)rqMultiButtonsDidHide:(RQMultiButtons *)multiButtons; @end