FMLoadMoreFooterView.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // FMLoadMoreFooterView.m
  3. // FreeMusic
  4. //
  5. //
  6. #import "FMLoadMoreFooterView.h"
  7. #import "UIView+Additions.h"
  8. @implementation FMLoadMoreFooterView
  9. - (id)initWithFrame:(CGRect)frame
  10. {
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. // Initialization code
  14. self.activeView = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(frame.size.width/2-(30+100)/2, frame.size.height/2-30/2, 30, 30)];
  15. _activeView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
  16. // _activeView.backgroundColor =[UIColor redColor];
  17. [self addSubview:_activeView];
  18. self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(_activeView.size.width+_activeView.origin.x, frame.size.height/2-25/2, 100, 25)];
  19. // _titleLabel.backgroundColor = [UIColor redColor];
  20. [self addSubview:_titleLabel];
  21. }
  22. return self;
  23. }
  24. /*
  25. // Only override drawRect: if you perform custom drawing.
  26. // An empty implementation adversely affects performance during animation.
  27. - (void)drawRect:(CGRect)rect
  28. {
  29. // Drawing code
  30. }
  31. */
  32. @end