Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
reddavis committed Mar 27, 2012
1 parent 00b173d commit 5b24c9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RDActionSheet/RDViewController.h
Expand Up @@ -9,7 +9,7 @@
#import <UIKit/UIKit.h>
#import "RDActionSheet.h"

@interface RDViewController : UIViewController <RDActionSheetDelegate>
@interface RDViewController : UIViewController

@property (nonatomic, strong) IBOutlet UIButton *showActionSheetButton;

Expand Down
1 change: 1 addition & 0 deletions RDActionSheet/RDViewController.m
Expand Up @@ -34,6 +34,7 @@ - (IBAction)showActionSheet:(id)sender {

RDActionSheet *actionSheet = [[RDActionSheet alloc] initWithCancelButtonTitle:@"Cancel" primaryButtonTitle:@"Save" destroyButtonTitle:@"Destroy" otherButtonTitles:@"Tweet", nil];
actionSheet.callbackBlock = ^(RDActionSheetResult result, NSInteger buttonIndex) {

switch (result) {
case RDActionSheetButtonResultSelected:
NSLog(@"Pressed %i", buttonIndex);
Expand Down

0 comments on commit 5b24c9e

Please sign in to comment.