LXActionSheet.h 718 B

123456789101112131415161718192021222324
  1. //
  2. // LXActionSheet.h
  3. // LXActionSheetDemo
  4. //
  5. // Created by lixiang on 14-3-10.
  6. // Copyright (c) 2014年 lcolco. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class LXActionSheet;
  10. @protocol LXActionSheetDelegate <NSObject>
  11. @optional
  12. - (void)didClickOnButtonIndex:(LXActionSheet*)sender buttonIndex:(int)buttonIndex;
  13. - (void)didClickOnDestructiveButton;
  14. - (void)didClickOnCancelButton;
  15. @end
  16. @interface LXActionSheet : UIView
  17. - (id)initWithTitle:(NSString *)title delegate:(id<LXActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray *)otherButtonTitlesArray;
  18. - (void)showInView:(UIView *)view;
  19. @end