ios-a popup menu animation view open Source project sharing

Source: Internet
Author: User

Pop-up view similar to the Tumblr publish button
The use is simple:

Initialization

@property (nonatomicstrong) XWMenuPopView *myMenuPopView;- (void)viewDidLoad {    [super//将弹出菜单视图添加到主视图    _myMenuPopView = [[XWMenuPopView alloc] initWithFrame:self.view.frame];    [_myMenuPopView setMenuPopDelegate:self];    [self.view addSubview:_myMenuPopView];  }

Use:

#pragma mark - 弹出菜单监听方法-(void)ShowMenuPopView:(UIButton *)menuPopBtn {    [_myMenuPopView showMenu];}

Agent

#pragmaMenuPopDelegate 代理方法-(void)XWMenuPopView:(XWMenuPopView *)MenuPopView didSelectedMenuIndex:(NSInteger)selectedIndex{    NSLog(@"->>didSelectedMenuIndex->>点击的是第%ld个按钮",selectedIndex);}

Note two points:
/* If the popup view is not displayed at the front end, you can /
[Self.view Bringsubviewtofront:_mymenupopview];
If the pop-up view is in a custom Uitabbarcontroller encapsulated controller, you need to add Xwmenupopview in the Uitabbarcontroller child view

source File Download:
Https://github.com/qxuewei/XWMenuPopView

ios-a popup menu animation view open Source project sharing

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.