Skip to content

linconz/YLActionSheet

Repository files navigation

About YLActionSheet

This an action menu from the bottom of the screen.

Screenshoot

screenshoot

Useage

Import YLActionSheet.h and YLActionSheet.m into your project. In the ViewController implementation YLActionSheetDelegate delegate(optional).

Initialize action sheet:

self.actionSheet = [[YLActionSheet alloc] initWithTitle:@"Action sheet title" 
                                           withDelegate:self 
                                           actionTitles:@"sheet 1", @"sheet 2", nil];

and delegate callback(optional):

- (void)ylActionSheet:(YLActionSheet *)actionSheet actionAtIndex:(NSInteger)actionIndex
{
    NSLog(@"action sheet call back, actionIndex:%ld", actionIndex);
}

- (void)ylActionSheetCanceld:(YLActionSheet *)actionSheet
{
    NSLog(@"action sheet call back, click cancel");
}

Author

@linconz

License

This code is open source software licensed under the Apache 2.0 License.

About

An action menu from the bottom of the screen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published