Implement popup Recall Menu effect iOS source

Source: Internet
Author: User
Tags home screen

Remenu can provide the next pop-up menu, jump to different VC after the menu will be collected. The pop-up of the menu has a rebound (bounce) effect.



    • <ignore_js_op>








How to use:


First copy the Remenu folder to your project, and then import the header file:
#include "REMenu.h"

How to Implement in Demo:

Remenuitem *homeitem = [[Remenuitem alloc] initwithtitle:@ "Home"
subtitle:@ "Return to Home screen"
Image:[uiimage imagenamed:@ "Icon_home"]
Highlightedimage:nil
action:^ (Remenuitem *item) {
NSLog (@ "Item:%@", item);
}];

Remenuitem *exploreitem = [[Remenuitem alloc] initwithtitle:@ "Explore"
subtitle:@ "Explore Additional Options"
Image:[uiimage imagenamed:@ "Icon_explore"]
Highlightedimage:nil
action:^ (Remenuitem *item) {
NSLog (@ "Item:%@", item);
}];

Remenuitem *activityitem = [[Remenuitem alloc] initwithtitle:@ "Activity"
subtitle:@ "Perform 3 additional activities"
Image:[uiimage imagenamed:@ "Icon_activity"]
Highlightedimage:nil
action:^ (Remenuitem *item) {
NSLog (@ "Item:%@", item);
}];

Remenuitem *profileitem = [[Remenuitem alloc] initwithtitle:@ "Profile"
Image:[uiimage imagenamed:@ "Icon_profile"]
Highlightedimage:nil
action:^ (Remenuitem *item) {
NSLog (@ "Item:%@", item);
}];

Self.menu = [[Remenu alloc] Initwithitems:@[homeitem, Exploreitem, Activityitem, Profileitem]];
[Self.menu ShowFromNavigationController:self.navigationController];

You can also pop up a menu from a custom view:
-(void) Showfromrect: (cgrect) rect inview: (UIView *) view;
-(void) Showinview: (UIView *) view;

For more detailed information, please refer to demo or view.

Detailed Description: http://ios.662p.com/thread-2223-1-1.html

Implement popup Recall Menu effect iOS source

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.