Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions TOActionSheet/TOActionSheet.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ typedef NS_ENUM(NSInteger, TOActionSheetContentStyle) {
TOActionSheetContentStyleRight
};

extern CGFloat kTOActionSheetBorderRadius;
extern CGFloat kTOActionSheetCompactMargin;

@interface TOActionSheet : UIView

/**
Expand Down Expand Up @@ -206,15 +209,11 @@ Optionally, the text for the 'Cancel' button.
@param title The title to display in the button
@param tappedBlock A block that will be executed when the button is tapped
*/
- (void)addButtonWithTitle:(NSString *)title icon:(UIImage *)icon tappedBlock:(void (^)(void))tappedBlock;
- (void)addButtonWithTitle:(NSString *)title tappedBlock:(void (^)(void))tappedBlock;
- (void)addButtonWithTitle:(NSString *)title atIndex:(NSInteger)index tappedBlock:(void (^)(void))tappedBlock;
- (void)addButtonWithAttibuteStr:(NSAttributedString *)title icon:(UIImage *)icon tappedBlock:(void (^)(void))tappedBlock;
- (void)addButtonWithAttibuteStr:(NSAttributedString *)title tappedBlock:(void (^)(void))tappedBlock;
- (void)addButtonWithAttibuteStr:(NSAttributedString *)title atIndex:(NSInteger)index tappedBlock:(void (^)(void))tappedBlock;
- (void)removeButtonAtIndex:(NSInteger)index;

- (void)addDestructiveButtonWithTitle:(NSString *)title tappedBlock:(void (^)(void))tappedBlock;
- (void)addDestructiveButtonWithTitle:(NSString *)title icon:(UIImage *)icon tappedBlock:(void (^)(void))tappedBlock;
- (void)removeDestructiveButton;

- (void)showFromRect:(CGRect)rect inView:(UIView *)view;
- (void)showFromView:(UIView *)fromView inView:(UIView *)view;
- (void)showFromBarButtonItem:(UIBarButtonItem *)barButtonItem inView:(UIView *)view;
Expand Down
Loading