用于在UITabbar中间添加一个可弹出菜单的button。
//初始化并添加到tabbar中间
ALOptionsButton *button = [[ALOptionsButton alloc] initForTabBar:self.tabBar forItemIndex:2 delegate:self];
button.backgroundColor = [UIColor redColor];
弹出菜单中的按钮数量,推荐3-4个
- (NSUInteger)alOptionsButtonNumberOfItems:(ALOptionsButton *)alOptionsButton;
返回菜单项,类似于cellforRowAtIndexPath
- (ALOptionsItem *)tabBar:(UITabBar *)tabBar itemAtIndex:(NSUInteger)index;
点击菜单项的回调
- (void)alOptionsButton:(ALOptionsButton *)alOptionsButton didSlectItem:(ALOptionsItem *)item;