DialogUtil.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // ;
  3. // wq
  4. //
  5. // Created by berwin on 13-6-28.
  6. // Copyright (c) 2013年 Weqia. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "MBProgressHUD.h"
  10. @interface DialogUtil : NSObject<MBProgressHUDDelegate> {
  11. long long expectedLength;
  12. long long currentLength;
  13. }
  14. + (DialogUtil *)sharedInstance;
  15. + (void)showDlgAlert:(NSString *) label;
  16. - (void)showDlgCommon:(UIView *) view;
  17. - (void)showDlg:(UIView *) view withLabel:(NSString *) label;
  18. - (void)showDlg:(UIView *) view withLabel:(NSString *)label withDetail:(NSString *)detail;
  19. - (void)showDlg:(UIView *) view withLabelDeterminate:(NSString *) label;
  20. - (void)showDlg:(UIView *)view withLabelAnnularDeterminate:(NSString *) label;
  21. - (void)showDlgWithLabelDeterminateHorizontalBar:(UIView *) view;
  22. - (void)showDlg:(UIView *) view withImage:(NSString *) imgName withLabel:(NSString *) label;
  23. - (void)showDldLabelMixed:(UIView *) view;
  24. - (void)showDlg:(UIView *) view usingBlocks:(NSString *)label;
  25. - (void)showDlg:(UIView *) view onWindow:(NSString *) label;
  26. - (void)showDlg:(UIView *) view witgURL:(NSString *) url;
  27. - (void)showDlgWithGradient:(UIView *) view;
  28. - (void)showDlg:(UIView *) view textOnly:(NSString *) label;
  29. - (void)showDlg:(UIView *) view withColor:(UIColor *) color;
  30. @end