如何从SOAP获取数据并在ios中的下一个视图控制器textview中显示?

时间:2015-09-24 13:11:55

标签: ios soap

如何从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];

   }

0 个答案:

没有答案