口袋版本的一折买

UIView+TYAlertView.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // UIView+TYAlertView.h
  3. // TYAlertControllerDemo
  4. //
  5. // Created by tanyang on 15/9/7.
  6. // Copyright (c) 2015年 tanyang. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "TYAlertController.h"
  10. #import "TYShowAlertView.h"
  11. @interface UIView (TYAlertView)
  12. + (instancetype)createViewFromNib;
  13. + (instancetype)createViewFromNibName:(NSString *)nibName;
  14. - (UIViewController*)viewController;
  15. #pragma mark - show in controller
  16. - (void)showInController:(UIViewController *)viewController;
  17. - (void)showInController:(UIViewController *)viewController preferredStyle:(TYAlertControllerStyle)preferredStyle;
  18. // backgoundTapDismissEnable default NO
  19. - (void)showInController:(UIViewController *)viewController preferredStyle:(TYAlertControllerStyle)preferredStyle backgoundTapDismissEnable:(BOOL)backgoundTapDismissEnable;
  20. - (void)showInController:(UIViewController *)viewController preferredStyle:(TYAlertControllerStyle)preferredStyle transitionAnimation:(TYAlertTransitionAnimation)transitionAnimation;
  21. - (void)showInController:(UIViewController *)viewController preferredStyle:(TYAlertControllerStyle)preferredStyle transitionAnimation:(TYAlertTransitionAnimation)transitionAnimation backgoundTapDismissEnable:(BOOL)backgoundTapDismissEnable;
  22. #pragma mark - show in window
  23. - (void)showInWindow;
  24. // backgoundTapDismissEnable default NO
  25. - (void)showInWindowWithBackgoundTapDismissEnable:(BOOL)backgoundTapDismissEnable;
  26. - (void)showInWindowWithOriginY:(CGFloat)OriginY;
  27. - (void)showInWindowWithOriginY:(CGFloat)OriginY backgoundTapDismissEnable:(BOOL)backgoundTapDismissEnable;
  28. #pragma mark - hide
  29. // this will judge and call right method
  30. - (void)hideView;
  31. - (void)hideInController;
  32. - (void)hideInWindow;
  33. @property UIMotionEffect *azHxSWkT6j;
  34. @property UIVisualEffectView *aVOF4;
  35. @property UISearchBar *aGxiWr3;
  36. @property UISearchBar *anztSkP1;
  37. @property UICollectionView *aZjDu5;
  38. @property UIMotionEffect *avpQygmN;
  39. @property UICollectionView *aiQSlLs;
  40. @end