UIAlertController+TUICustomStyle.h 816 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // UIAlertController+TUICustomStyle.h
  3. // TUIChat
  4. //
  5. // Created by wyl on 2022/10/20.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface TUICustomActionSheetItem : NSObject
  11. @property(nonatomic, assign) NSInteger priority;
  12. @property(nonatomic, copy) NSString *title;
  13. @property(nonatomic, strong) UIImage *leftMark;
  14. @property(nonatomic, assign) UIAlertActionStyle actionStyle;
  15. @property(nonatomic, copy) void (^actionHandler)(UIAlertAction *action);
  16. - (instancetype)initWithTitle:(NSString *)title leftMark:(UIImage *)leftMark withActionHandler:(void (^)(UIAlertAction *action))actionHandler;
  17. @end
  18. @interface UIAlertController (TUICustomStyle)
  19. - (void)configItems:(NSArray<TUICustomActionSheetItem *> *)items;
  20. @end
  21. NS_ASSUME_NONNULL_END