11


-(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];}}





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值