BSAlertView.h 1011 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // BSAlertView.h
  3. // Unionpay
  4. //
  5. // Created by Qing Xiubin on 13-8-7.
  6. // Copyright (c) 2013年 成都中信联通科技有限公司. All rights reserved.
  7. //
  8. typedef NS_ENUM(NSInteger, AlertAnimation){
  9. kAlertAnimationTop,
  10. kAlertAnimationLeft,
  11. kAlertAnimationRight,
  12. kAlertAnimationBottom,
  13. kAlertAnimationFade,
  14. kAlertAnimationPop,
  15. kAlertAnimationNone,
  16. };
  17. @interface BSAlertView : UIView
  18. @property (nonatomic, strong) IBOutlet UIImageView *bgImageView;
  19. @property (nonatomic, assign) BOOL gesture;
  20. @property (nonatomic, assign) UIStatusBarStyle statusBarStyle;
  21. @property (nonatomic, strong) UIColor *bgColor;
  22. @property (assign, nonatomic) BOOL allowAbserveKeyboard;
  23. - (void)show;
  24. - (void)showWithAnimation:(AlertAnimation)animation;
  25. - (void)dismiss;
  26. - (void)dismissWithAnimation:(AlertAnimation)animation;
  27. //子类可以重写下列方法来控制界面显示
  28. - (BOOL)willShowKeyboard;
  29. - (CGFloat)marginToBottom;
  30. - (CGPoint)centerWithAnimation:(AlertAnimation)animation;
  31. @end