Multi-row scrollable action sheet
tested on
- iPad Air 7.1 8.1
- iPhone5s 7.1 8.1
on iPad
on iPhone
//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