/ Menu

A not bad gooey effects menu

A not bad gooey effects menu

KYGooeyMenu

Path menu with gooey effectes.

Here is what the repo can do:

1.Tap each menu,you will get the number in the protocol method,so you can switch-case the number to do the later work.

2.You can customize the number of the menu.

3.You can customize the distance between super menu and the sub menus.

4.Customize the theme color.

4.Customize menu icon.

gooey

also,you can set the menu's icon:

screenshot

Installation

pod 'KYGooeyMenu', '~> 1.0.5'

Usage

Initialize

    gooeyMenu = [[KYGooeyMenu alloc]initWithOrigin:CGPointMake(CGRectGetMidX(self.view.frame)-50, 500) andDiameter:100.0f andDelegate:self themeColor:[UIColor redColor]];
    gooeyMenu.menuDelegate = self;
    gooeyMenu.radius = 100/4;     //这里把小圆半径设为大圆的1/4
    gooeyMenu.extraDistance = 20; //间距设为R+r+20。注:R+r是默认存在的。
    gooeyMenu.MenuCount = 4;      //4个子菜单
    gooeyMenu.menuImagesArray = [NSMutableArray arrayWithObjects:
        [UIImage imageNamed:@"tabbarItem_discover highlighted"],
        [UIImage imageNamed:@"tabbarItem_group highlighted"],
        [UIImage imageNamed:@"tabbarItem_home highlighted"],
        [UIImage imageNamed:@"tabbarItem_message highlighted"],
        [UIImage imageNamed:@"tabbarItem_user_man_highlighted"], nil];

implement protocol method

-(void)menuDidSelected:(int)index{
    NSLog(@"选中第%d",index);
}

That's it! Enjoy!

GitHub