Skip to content

mrhyh/DOPScrollableActionSheet

 
 

Repository files navigation

DOPScrollableActionSheet

Multi-row scrollable action sheet

tested on

  1. iPad Air 7.1 8.1
  2. iPhone5s 7.1 8.1

on iPad

image

on iPhone image

//DOPAction                 model
//DOPScrollableActionSheet  view and partial controller for showing and programmatical dismissing

//multi scrollable row actionsheet
@interface DOPScrollableActionSheet : UIView
/*
    actions = @[@"row title one",                   //with title
                @[action1, action2, action3, ...],
                @"row title two",                   //with title
                @[action4, action5],
                @"",                                //without title
                @[action6, action7],
                ...];
*/
- (instancetype)initWithActionArray:(NSArray *)actions;

//always show in a new window
- (void)show;
- (void)dismiss;
@end

#pragma mark - DOPAction interface
@interface DOPAction : NSObject

@property (nonatomic, copy) NSString *iconName;
@property (nonatomic, copy) NSString *actionName;
@property (nonatomic, copy) void(^handler)(void);

- (instancetype)initWithName:(NSString *)name
                    iconName:(NSString *)iconName
                     handler:(void(^)(void))handler;

@end

all the icons come from mob.com

About

Multi-row scrollable action sheet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%