2StepButton is inspired on button as which appears at Notification Center on iOS 6
-
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
}
- QuartzCore
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.