• Stars
    star
    297
  • Rank 140,075 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Floating Action Button just like Google inbox for iOS

VCFloatingActionButton

A Floating Action Button inspired from Google inbox for iOS.

Using this in your project

  • Import the VCFloatingActionButton to your project
  • Use VCFloatingActionButton.h

Initialize the button and add it as a subview

VCFloatingActionButton *addButton = [[VCFloatingActionButton alloc]initWithFrame:floatFrame normalImage:[UIImage imageNamed:@"plus"] andPressedImage:[UIImage imageNamed:@"cross"] withScrollview:_dummyTable];

Add Images and label names for the actions

addButton.imageArray = @[@"fb-icon",@"twitter-icon",@"google-icon",@"linkedin-icon"];
addButton.labelArray = @[@"Facebook",@"Twitter",@"Google Plus",@"Linked in"];

Add Optional hide while scrolling

addButton.hideWhileScrolling = YES;

Use Delegate to handle actions

-(void) didSelectMenuOptionAtIndex:(NSInteger)row

P.S: This was done in a short time, please feel free to contribute

##License MIT License