iOS 菜单:PopMenu

jopen 10年前

PopMenu 是带有弹出动画的菜单,灵感来源于微博和网易应用。

NSMutableArray *items = [[NSMutableArray alloc] initWithCapacity:3];  MenuItem *menuItem = [[MenuItem alloc] initWithTitle:@"Flickr" iconName:@"post_type_bubble_flickr" glowColor:[UIColor grayColor] index:0];  [items addObject:menuItem];    menuItem = [[MenuItem alloc] initWithTitle:@"Googleplus" iconName:@"post_type_bubble_googleplus" glowColor:[UIColor colorWithRed:0.000 green:0.840 blue:0.000 alpha:1.000] index:0];  [items addObject:menuItem];    menuItem = [[MenuItem alloc] initWithTitle:@"Instagram" iconName:@"post_type_bubble_instagram" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];  [items addObject:menuItem];    menuItem = [[MenuItem alloc] initWithTitle:@"推ter" iconName:@"post_type_bubble_推ter" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];  [items addObject:menuItem];    menuItem = [[MenuItem alloc] initWithTitle:@"油Tube" iconName:@"post_type_bubble_油Tube" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];  [items addObject:menuItem];    menuItem = [[MenuItem alloc] initWithTitle:@"非死book" iconName:@"post_type_bubble_非死book" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];  [items addObject:menuItem];    PopMenu *popMenu = [[PopMenu alloc] initWithFrame:self.view.bounds items:items];  [popMenu showMenuAtView:self.view];

iOS 菜单:PopMenu

项目主页:http://www.open-open.com/lib/view/home/1423661726311