Skip to content

carabina/YActionSheet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

License

YActionSheet

Custom Selectable Action Sheet. YActionSheet provides you ability to see your selected option in ActionSheet view.

How to use

  1. Drag YActionSheet directory to your xCode Project.

  2. Make sure "Copy items if needed" is selected.

  3. Import YActionSheet.h in file where you want to use it.

#import "YActionSheet.h"
  1. Initialize YActionSheet
YActionSheet *options = [[YActionSheet alloc] initWithTitle:@"Options"
                                                         dismissButtonTitle:@"Title"
                                                         otherButtonTitles:@[@"One", @"Two", @"Three", @"Four", @"Five"];
                                                   dismissOnSelect:NO];
  1. Open YActionSheet
[options showInViewController:self withYActionSheetBlock:^(NSInteger buttonIndex, BOOL isCancel) {
        // Handle block completion
    }];

Configurations

Set pre selected option index. Call this before showing YActionSheet.

[options setSelectedIndex:selectedIndex];

About

Custom Selectable Action Sheet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%