我是Iphone開發的新人。我有一種形式,其中顯示數據,我打電話給web服務。當該服務被調用時,它將從其他文件中解析出來,並且頁面導航到'發送頁面',其中這些數據顯示在UITableview中。iphone-UIAlertview-UIIndicatorview
我也使用uiAtertview和UIIndicatorview兩者用於顯示進程正在進行。但問題是,當我點擊按鈕我打電話UIAtertView + UIIndicator但沒有得到顯示,並且數據也沒有得到顯示,,,
我的代碼是
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Configuring Preferences\nPlease Wait.." message:nil delegate:nil cancelButtonTitle:nil otherButtonTitles:nil,nil];
[alert show];
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
// Adjust the indicator so it is up a few pixels from the bottom of the alert
indicator.center = CGPointMake(alert.bounds.size.width/2, alert.bounds.size.height - 50);
[indicator startAnimating];
[alert addSubview:indicator];
[indicator release];
self.ResultPage = [[ResultPage alloc] init];
[email protected]" Search ";
// Here My Webservice Is Call From Another ViewController Class And That Class Display Data //InTo UITableVIew
[self.ResultPage GetSearchResult:StrBookId : txtFPrice.text :txtTprice.text];
[alert dismissWithClickedButtonIndex:0 animated:YES];
[self.navigationController pushViewController: _ResultPage animated:YES];
請建議我....
感謝名單
你確定你設置的指標視圖中心的高度是否正確? – 2011-05-09 06:02:15