Skip to content

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

License

Notifications You must be signed in to change notification settings

ferbass/FB2StepButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published