CustomActionSheet.m 948 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // CustomActionSheet.m
  3. // zhuxun
  4. //
  5. // Created by winsoft on 16/7/15.
  6. //
  7. //
  8. #import "CustomActionSheet.h"
  9. @implementation CustomActionSheet
  10. /*
  11. // Only override drawRect: if you perform custom drawing.
  12. // An empty implementation adversely affects performance during animation.
  13. - (void)drawRect:(CGRect)rect {
  14. // Drawing code
  15. }
  16. */
  17. - (instancetype)initWithTitle:(NSString *)title delegate:(id<UIActionSheetDelegate>)delegate object:(id)object indexPath:(NSIndexPath *)indexPath cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ...
  18. {
  19. if (self = [super initWithTitle:title delegate:delegate cancelButtonTitle:cancelButtonTitle destructiveButtonTitle:destructiveButtonTitle otherButtonTitles:otherButtonTitles, nil]) {
  20. //
  21. self.indexPath = indexPath;
  22. self.object = object;
  23. }
  24. return self;
  25. }
  26. @end