1[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
2[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;