-(void) _requestSuccess:(int)processType{
//无加载提示if (processType == ProcessNone) {return;}//有黑色的背景if (processType == ProcessDefault) {if (bvProgress != nil) {[progress stopAnimating];[progress removeFromSuperview];[progress release];progress = nil;[bvProgress removeFromSuperview];[bvProgress release];bvProgress = nil;}}//只有转圈if (processType == ProcessSimple) {if (progress != nil) {[progress stopAnimating];[progress removeFromSuperview];[progress release];progress = nil;}}}-(void) _requestStart:(int)processType{//无加载提示if (processType == ProcessNone) {return;}if (processType == ProcessDefault) {//有黑色的背景if (bvProgress == nil) {bvProgress = [[ButtonView alloc] initWithName:nil :@"加载中⋯⋯"];[bvProgress.titleLabel setFont:[UIFont boldSystemFontOfSize:18]]; [bvProgress setTitleColor:TEXTCOLOR forState:UIControlStateNormal];bvProgress.frame = CGRectMake(0, 0, [Global GetInstance].ScreenWidth, 480 - tabBarHeight);bvProgress.backgroundColor=BLACKBGCOLOR;//bvProgress.backgroundColor = [UIColor clearColor];progress= [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake((bvProgress.frame.size.width-30)/2, (bvProgress.frame.size.height-60)/2, 20, 20)];progress.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;[bvProgress addSubview:progress];[progress startAnimating];[self.parentViewController.view addSubview:bvProgress];}}if (processType == ProcessSimple) {//一般的显示效果 只有转圈progress= [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake((320-30)/2, (460-44-tabBarHeight)/2, 20, 20)];progress.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;[self.view addSubview:progress];[progress startAnimating];}}
11
最新推荐文章于 2024-01-23 17:28:02 发布