IOS-open-source project sharing in the menu animation View
A pop-up view similar to the Tumblr release button
Easy to use:
Initialization:
@ Property (nonatomic, strong) XWMenuPopView * myMenuPopView;-(void) viewDidLoad {[super viewDidLoad]; // Add the pop-up menu View to the main view _ myMenuPopView = [[XWMenuPopView alloc] initWithFrame: self. view. frame]; [_ myMenuPopView setMenuPopDelegate: self]; [self. view addSubview: _ myMenuPopView];}
Usage:
# Pragma mark-pop-up menu listening method-(void) ShowMenuPopView :( UIButton *) menuPopBtn {[_ myMenuPopView showMenu];}
Proxy
# Pragma mark-MenuPopDelegate proxy method-(void) XWMenuPopView :( XWMenuPopView *) MenuPopView didSelectedMenuIndex :( NSInteger) selectedIndex {NSLog (@ "-> didSelectedMenuIndex-> click the % ld button", selectedIndex );}
Note:
/* If the pop-up view is not displayed at the frontend, you can/
// [Self. view bringSubviewToFront: _ myMenuPopView];
// If the pop-up view is a controller encapsulated in the Custom UITabBarController, add the XWMenuPopView to the UITabBarController sub-view.
Source File Download:
Https://github.com/qxuewei/XWMenuPopView