CustomLoadingView.h 704 B

12345678910111213141516171819202122232425262728
  1. //
  2. // CustomLoadingView.h
  3. // JasonDevelop
  4. //
  5. // Created by Jason Lee on 10/23/14.
  6. // Copyright (c) jasondevelop. All rights reserved.
  7. //
  8. #import "JDFacade.h"
  9. @interface CustomLoadingView : UIView
  10. #pragma mark - Properties
  11. @property (weak, nonatomic) NSOperation *operation;
  12. @property (copy) JDFacadeCompletionCallBackHandler completionBlock;
  13. #pragma mark - Methods
  14. + (CustomLoadingView *)loadingView;
  15. - (void)showInView:(UIView *)container;
  16. - (void)showInView:(UIView *)container whileExecutingBlock:(dispatch_block_t)block;
  17. - (void)showInView:(UIView *)container whileExecutingBlock:(dispatch_block_t)block completionHandler:(JDFacadeCompletionCallBackHandler)completion;
  18. - (void)hide;
  19. @end