PopMenu 2.4

PopMenu 2.4

测试已测试
语言语言 Obj-CObjective C
许可 MIT
发布上次发布2015年5月

Jack 维护。



 
依赖
XHRealTimeBlur>= 0
pop>= 0
 

  • xhzengAIB

PopMenu 是由新浪微博/网易应用启发的弹出动画菜单。

屏幕截图

image

安装

使用 CocoaPods,在您的 Podfile 中添加此行。

pod 'PopMenu'

然后运行 pod install,然后您就完成了!

如何使用

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:@"Twitter" iconName:@"post_type_bubble_twitter" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];
[items addObject:menuItem];

menuItem = [[MenuItem alloc] initWithTitle:@"Youtube" iconName:@"post_type_bubble_youtube" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];
[items addObject:menuItem];

menuItem = [[MenuItem alloc] initWithTitle:@"Facebook" iconName:@"post_type_bubble_facebook" 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 7.0+
  • ARC

许可

英文:PopMenu 在 MIT 许可下可用,有关更多信息请参阅 LICENSE 文件。