UINavigationController+CCProgress.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // UINavigationController+SGProgress.h
  3. // NavigationProgress
  4. //
  5. // Created by Shawn Gryschuk on 2013-09-19.
  6. // Copyright (c) 2013 Shawn Gryschuk. All rights reserved.
  7. //
  8. // Modify Marino Faggiana
  9. #import <UIKit/UIKit.h>
  10. #define kSGProgressTitleChanged @"kCCProgressTitleChanged"
  11. #define kSGProgressOldTitle @"kCCProgressOldTitle"
  12. @interface UINavigationController (CCProgress)
  13. - (void)showCCProgress;
  14. - (void)showCCProgressWithDuration:(float)duration;
  15. - (void)showCCProgressWithDuration:(float)duration andTintColor:(UIColor *)tintColor;
  16. - (void)showCCProgressWithDuration:(float)duration andTintColor:(UIColor *)tintColor andTitle:(NSString *)title;
  17. - (void)showCCProgressWithMaskAndDuration:(float)duration;
  18. - (void)showCCProgressWithMaskAndDuration:(float)duration andTitle:(NSString *)title;
  19. - (void)finishCCProgress;
  20. - (void)cancelCCProgress;
  21. - (void)setCCProgressPercentage:(float)percentage;
  22. - (void)setCCProgressPercentage:(float)percentage andTitle:(NSString *)title;
  23. - (void)setCCProgressPercentage:(float)percentage andTintColor:(UIColor *)tintColor;
  24. - (void)setCCProgressMaskWithPercentage:(float)percentage;
  25. - (void)setCCProgressMaskWithPercentage:(float)percentage andTitle:(NSString *)title;
  26. @end