IOS-open-source project sharing in the menu animation View

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.