我是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