加载框!

            UIActivityIndicatorView * _activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];

            _activityView.center = CGPointMake(self.view.frame.size.width*0.8, self.view.frame.size.height*0.94 );

            [self.view addSubview:_activityView];

 

#pragma mark - "是否加载更多"cell 中的加载框开始

-(void)startActivity

{

    self.view.userInteractionEnabled = NO;

    [_activityViewstartAnimating];

}

 

#pragma mark - "是否加载更多"cell 中的加载框停止

-(void)stopActivity

{

    [_activityViewstopAnimating];

    self.view.userInteractionEnabled = YES;

}

posted @ 2012-10-23 11:05  六界剑仙  阅读(112)  评论(0)    收藏  举报