FB2StepButton icon indicating copy to clipboard operation
FB2StepButton copied to clipboard

2StepButton is inspired on button as which appears at Notification Center on iOS 6

2StepButton is inspired on button as which appears at Notification Center on iOS 6

'image 1'   'image 2'

'image 3'   'image 4'

'image 5'

How to use

  • Add QuartzCore framework in your application.

  • import FB2StepButton

#import "FB2StepButton.h"
  • set a delegate for FB2StepButton
@interface ViewController () <FB2StepButtonDelegate>
  • basic implementation of button on view
    FB2StepButton *fbButtonRight = [[FB2StepButton alloc] initWithDelegate:self position:CGPointMake(295, 5)];
    fbButtonRight.slide = FB2StepButtonSlideLeft;
    [self.view addSubview:fbButtonRight];
  • implemente a delegate
#pragma mark FB2StepButtonDelegate

- (void)clickedButtonWithAction:(FB2StepButtonStep)step sender:(id)sender
{
    NSLog(@"%d", step);
    //do anything
}

Frameworks dependency

  • QuartzCore

License

This project is under the MIT license (details in COPYRIGHT.txt). Do whatever you want with it and contributions of any form are very welcome.