SPSBRefreshHeader.m 664 B

12345678910111213141516171819202122232425262728
  1. //
  2. // SPSBRefreshHeader.m
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/4/21.
  6. //
  7. #import "SPSBRefreshHeader.h"
  8. #import <JXHLayout.h>
  9. @implementation SPSBRefreshHeader
  10. - (instancetype)init {
  11. self = [super init];
  12. if (!self) return nil;
  13. self.lastUpdatedTimeLabel.hidden = true;
  14. self.arrowView.image = nil;
  15. [self.stateLabel remakeConstraints:^(JXHConstraintMaker *make) {
  16. make.center.equalTo(0);
  17. }];
  18. [self setTitle:@"下拉刷新" forState:MJRefreshStateIdle];
  19. [self setTitle:@"松开刷新" forState:MJRefreshStatePulling];
  20. [self setTitle:@"正在载入" forState:MJRefreshStateRefreshing];
  21. return self;
  22. }
  23. @end