省钱达人

TYShowAlertView.h 1008B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // TYShowAlertView.h
  3. // TYAlertControllerDemo
  4. //
  5. // Created by tanyang on 15/3/16.
  6. // Copyright (c) 2015年 mark. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface TYShowAlertView : UIView
  10. @property (nonatomic, weak, readonly) UIView *alertView;
  11. @property (nonatomic, strong) UIView *backgroundView;
  12. @property (nonatomic, assign) BOOL backgoundTapDismissEnable; // default NO
  13. @property (nonatomic, assign) CGFloat alertViewOriginY; // default center Y
  14. @property (nonatomic, assign) CGFloat alertViewEdging; // default 15
  15. +(void)showAlertViewWithView:(UIView *)alertView;
  16. + (void)showAlertViewWithView:(UIView *)alertView backgoundTapDismissEnable:(BOOL)backgoundTapDismissEnable;
  17. +(void)showAlertViewWithView:(UIView *)alertView originY:(CGFloat)originY;
  18. +(void)showAlertViewWithView:(UIView *)alertView originY:(CGFloat)originY backgoundTapDismissEnable:(BOOL)backgoundTapDismissEnable;
  19. + (instancetype)alertViewWithView:(UIView *)alertView;
  20. - (void)show;
  21. - (void)hide;
  22. @end