I select a row from a TableView which gets informations from a Webservice. Everything is loaded: A search, then we get results and then choose one.
But after choosing one, I can set the data to the other view and make another web service to Work.. I’m okay with that.
The problem is to show the new table containing the results of the new web service..
I get this after choosing a row from the last table View:
2012-04-30 13:54:29.687 +%¨*%¨%¨*[6759:f803] JSON(
"Name Gerald",
"",
4,
FR,
""
)
I made this with this:
NSString *nom = [olo objectForKey:@"name"];
NSString *hd = [olo objectForKey:@"24_7"];
NSString *passenger = [olo objectForKey:@"passengers"];
NSString *country = [olo objectForKey:@"country"];
NSString *special = [olo objectForKey:@"special_trip"];
_jsonOlo = [[NSMutableArray alloc] initWithObjects:nom, hd, passenger, country, special, nil];
But when I set the table I get a black screen :
1st:
http://tinypic.com/r/2uzpc20/6
2:
http://tinypic.com/r/287qeeq/6
I have the same code as the last tableView which sends to the results but I get Black screen.
If the two tableviews are different and you are not simply changing the datasource of the same table then your view might be loading before you have got all the data from web service .I don’t know, which framework you are using for json parsing but there should be a delegate which signifies the end of getting results from web service . Parse the data there and then send it to the tableview in viewDiDLoad method.