如何从xml soap解析数据并在下一个viewcontroller中传递这些数据。我编写了完整的程序,但数据未进入下一个视图我的代码如下:
- (void)parserDidEndDocument:(NSXMLParser *)parser
{
NSLog(@"dataArr :%@",dataArr);
NSMutableString*theText = [NSMutableString new];
for (Data* line in dataArr)
{
[theText appendFormat: @"%@\n", line.userId];
[theText appendFormat: @"%@\n", line.userName];
[theText appendFormat: @"%@\n", line.password];
[theText appendFormat: @"%@\n", line.userRole];
[theText appendFormat: @"%@\n", line.name];
[theText appendFormat: @"%@\n", line.fkconferenceId];
[theText appendFormat: @"%@\n", line.conferenceName];
[theText appendFormat: @"%@\n", line.conferenceDisplayName];
[theText appendFormat: @"%@\n", line.participationName];
[theText appendFormat: @"%@\n", line.email];
[theText appendFormat: @"%@\n", line.fkCompanyId];
}
NSLog(@"TheText = ,%@", theText);
DetailedViewController *dvc = [[DetailedViewController alloc]init];
[detailedViewController.details setText:theText];
[self.navigationController pushViewController:dvc animated:YES];
}