- (void)displayIndicator
{
if (_indicator == nil)
{
_indicator = [[UIActivityIndicatorViewalloc] initWithFrame:CGRectMake((self.frame.size.width- self.frame.size.height) / 2 - 60, 0.0f,
self.frame.size.height, self.frame.size.height)];
_indicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;
_indicator.transform = CGAffineTransformScale(_indicator.transform, 0.75, 0.75);
[self addSubview:_indicator];
}
self.enabled = NO;
_indicator.hidden = NO;
[selfsetTitle:kLoadingTextforState:UIControlStateNormal];
[_indicatorstartAnimating];
}
- (void)hideIndicator
{
self.enabled = YES;
[_indicatorstopAnimating];
_indicator.hidden = YES;
[selfsetTitle:kLoadMoreTextforState:UIControlStateNormal];
}