我正試圖在下載過程中顯示一個嵌入其中的進度條的操作表。工作表在下載過程中不顯示,下載完成後,屏幕會變暗,就好像它要呈現工作表並且UI已經死了。我假設有一些阻塞活動正在進行,它需要在另一個線程或其他線程上,但我還不熟悉iOS線程模型。我也假設因爲我已經刪除了工作表,所以顯示屏很暗淡。我怎麼解僱它?設置紙張起來的代碼是:不顯示操作表
self.pActionSheet=[[[UIActionSheet alloc] initWithTitle:@"Downloading Alerts. Please Wait.\n\n\n" delegate:nil cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil] autorelease];
pBarView=[[UIProgressView alloc] initWithFrame:CGRectMake(0.0f,40.0f, 220.0f, 90.0f)];
[pBarView setProgressViewStyle:UIProgressViewStyleDefault];
[pActionSheet addSubview:pBarView];
[pBarView release];
[pBarView setProgress:0.0f];
[pActionSheet showInView:self.view];
pBarView.center=CGPointMake(pActionSheet.center.x,pActionSheet.center.y);
pAmt=1.0/(float)totalDownload;
聲明予以駁回是:[pActionSheet removeFromSuperView[;
感謝。解僱工作,但你的參考指向行動表文件。你有其他的參考嗎?沒有什麼大不了的,我會看看我能否找到它。 – mlewis54 2011-01-29 15:33:11