Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.82 KB

README.md

File metadata and controls

34 lines (28 loc) · 1.82 KB

FloatingActionMenu

iOS FloatingActionMenu like inbox from google.

capture

####Usage

Very simple to use.

NSArray* items = @[ @{ FloatingActionMenuImage : [UIImage imageNamed:@"Item01"],
                       FloatingActionMenuText : @"Menu item 01",
                       FloatingActionMenuColor : [UIColor colorWithRed:0.47 green:0.33 blue:0.28 alpha:1] },
                    @{ FloatingActionMenuImage : [UIImage imageNamed:@"Item02"],
                       FloatingActionMenuText : @"Menu item 02",
                       FloatingActionMenuColor : [UIColor colorWithRed:1 green:0.41 blue:0.22 alpha:1] },
                    @{ FloatingActionMenuImage : [UIImage imageNamed:@"Item03"],
                       FloatingActionMenuText : @"Menu item 03",
                       FloatingActionMenuColor : [UIColor colorWithRed:0.61 green:0.15 blue:0.69 alpha:1] },
                    @{ FloatingActionMenuImage : [UIImage imageNamed:@"Item04"],
                       FloatingActionMenuText : @"Menu item 04",
                       FloatingActionMenuColor : [UIColor colorWithRed:0 green:0.73 blue:0.82 alpha:1] } ];
FloatingActionMenu* actionMenu = [FloatingActionMenu createMenuInViewController:self
                                                                          image:[UIImage imageNamed:@"Main"]
                                                                  expandedImage:[UIImage imageNamed:@"MainExpanded"]
                                                                      titleText:@"Main item"
                                                                          color:[UIColor colorWithRed:0.86 green:0.27 blue:0.22 alpha:1]
                                                                  expandedItems:items];

####Todo

  • Attach to a scroll view
  • Relayout for orientation change