Ios Bullet Frame Mjpopup,kxmenu

Source: Internet
Author: User

IOS Bullet Box if a custom view pops up directly, you can choose a third-party:

Mjpopup

Pop:

if (!bandview)

{

Bandview=[[[nsbundle mainbundle]loadnibnamed:@ "Bandview" Owner:selfoptions:nil] firstobject];

bandview.bdelagate=self;

[Bandview setframe:cgrectmake (0, 0, 320, 160)];

}

int offset=isiphone5?100:50;

[Self Presentpopupview:bandview animationType:MJPopupViewAnimationFadeoffset:offset];

The collection

[Self dismisspopupviewcontrollerwithanimationtype:mjpopupviewanimationfade];

General Menu pop-up available

Kxmenu

Nsarray *menuitems =

@[

[Kxmenuitem menuitem:@ "Detailed statistics method"

Image:nil

Target:nil

Action:null],

[Kxmenuitem menuitem:@ "Cash"

image:[uiimageimagenamed:@ "Action_icon"]

Target:self

Action: @selector (Pushmenuitem:)],

[Kxmenuitem menuitem:@ "Balance"

image:[uiimageimagenamed:@ "Check_icon"]

Target:self

Action: @selector (Pushmenuitem:)],

[Kxmenuitem menuitem:@ "POS"

image:[uiimageimagenamed:@ "Reload"]

Target:self

Action: @selector (Pushmenuitem:)]

];

Kxmenuitem *first = menuitems[0];

First.forecolor = [uicolorcolorwithred:47/255.0f green:112/255.0f blue:225/255.0f alpha:1.0];

First.alignment = Nstextalignmentcenter;

CGRect Rect=button.frame;

CGFloat height=0.0;

if (ios7>=7.0)

{

height=64;

}

Else

{

height=0.0;

}

[Kxmenu ShowMenuInView:self.view

Fromrect:cgrectmake (rect.origin.x, RECT.ORIGIN.Y, rect.size.width, height)

Menuitems:menuitems];

Click event Implementation:

-(void) Pushmenuitem: (kxmenuitem*) Sender

Ios Bullet Frame Mjpopup,kxmenu

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.