Skip to content

ymsmile/MXActionSheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to use?

UIActionSheet usage is the same as

#import "MXActionSheet.h"

MXActionSheet *sheet = [[MXActionSheet alloc] initWithTitle:@"This is the main title"
                                                       delegate:self
                                              cancelButtonTitle:@"Cancel"
                                              otherButtonTitles:@[@"WeChat", @"Weibo", @"Twitter", @"QQ"]];
[sheet showInView:self.view];

then

#pragma mark - MXActionSheetDelegate

- (void)actionSheet:(MXActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
    NSLog(@"%@",@(buttonIndex));
}

About

A cusom control like UIActionSheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published