セル内の ASIHTTP ライブラリを使用して複数のファイルをダウンロードし、複数の進行状況と受信バイトなどのステータスを表示しています 正常に動作していましたが、多くのユーザーがそのサーバーを指し示した後、ステータスや進行状況バーが表示されず、応答に遅延が発生し始めますASIHTTPRequest のブロックです。助けてください
前もって感謝します
セル内の ASIHTTP ライブラリを使用して複数のファイルをダウンロードし、複数の進行状況と受信バイトなどのステータスを表示しています 正常に動作していましたが、多くのユーザーがそのサーバーを指し示した後、ステータスや進行状況バーが表示されず、応答に遅延が発生し始めますASIHTTPRequest のブロックです。助けてください
前もって感謝します
すべての ASIHTTPRequest ライブラリをインポートするだけで、進行状況バーを使用し、以下の組み込みメソッドを使用する場合は、プロトコル ファイルのインポートを使用する必要があります...
- (void)viewDidLoad
{
[super viewDidLoad];
NSString *url=@"http://dulemba.com/Visits/Cover-GGCC(2mb).jpg";
proTo = [[protocol_file alloc]initWithURL:[NSURL URLWithString:url] delegate:self];
imageView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 10, 300, 250)];
[self.view addSubview:imageView];
lbl=[[UILabel alloc]initWithFrame:CGRectMake(0, 250, 200, 100)];
[self.view addSubview:lbl];
lblPers=[[UILabel alloc]initWithFrame:CGRectMake(100, 250, 200, 100)];
[self.view addSubview:lblPers];
progressBar = [[UIProgressView alloc] initWithFrame:CGRectMake(0, 280, 300, 90)];
[self.view addSubview:progressBar];
}
-(void)imgDownload:(UIImage *)data{
imageView.image=data;
NSLog(@"image");}
-(void)setLblvalue:(float)val{
lblPers.text=[[NSString alloc]initWithFormat:@"%0.2f %%",val];
}
-(void)setProgValu:(float)val{
progressBar.progress=val;
// NSLog(@"progress %f",val); }
-(void)setPersent:(float)val{
lbl.text = [[NSString alloc] initWithFormat:@"%0.2f MB",val];
}