This an action menu from the bottom of the screen.
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");
}
@linconz
This code is open source software licensed under the Apache 2.0 License.