Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 978 Bytes

README.md

File metadata and controls

32 lines (28 loc) · 978 Bytes

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.