popupMenu can support for the layout type of Horizontal or Vertical.
##How to user ZFPopupMenu?
add the "ZFPopupMenu" folder in your project.
##Create Horizontal popupMenu.
ZFPopupMenuItem *item1 = [ZFPopupMenuItem initWithMenuName:@"新建"
image:[UIImage imageNamed:@"图标1"]
action:@selector(test1)
target:self];
Horizontal:
ZFPopupMenu *popupMenu = [[ZFPopupMenu alloc] initWithItems:[self menuItems]];
[popupMenu showInView:self.view fromRect:fromRect layoutType:Horizontal];
Vertical:
ZFPopupMenu *popupMenu = [[ZFPopupMenu alloc] initWithItems:[self menuItems]];
[popupMenu showInView:self.view fromRect:fromRect layoutType:Vertical];
##Set ZFPopupMenu Porterty.
[ZFPopupMenu setTextColorWithRed:1 green:1 blue:1 aphla:1.0];
[ZFPopupMenu setMenuBackgroundColorWithRed:0.6 green:0.4 blue:0.2 aphla:1];
[ZFPopupMenu setHighlightedImage:[UIImage imageNamed:@"cancelBg"]];
[ZFPopupMenu setMenuBackgroundColorWithRed:0 green:0 blue:0 aphla:0.2];
[ZFPopupMenu setSeparationLineColor:[UIColor grayColor]];