Toast.h 574 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Toast.h
  3. // AJPushDemo
  4. //
  5. // Created by kean_qi on 2021/3/18.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. enum AJTimeType
  11. {
  12. AJLongTime,
  13. AJShortTime
  14. };
  15. @interface Toast : UIView{
  16. UILabel* _label;
  17. NSString * _text;
  18. CGFloat _time;
  19. }
  20. @property (copy, nonatomic) NSString *theNewText;
  21. +(Toast *)makeText:(NSString *)text;
  22. +(Toast *)makeUpText:(NSString *)text;
  23. +(void)aj_makeUpText:(NSString *)text showWithType:(enum AJTimeType)type;
  24. -(void)showWithType:(enum AJTimeType)type;
  25. @end
  26. NS_ASSUME_NONNULL_END