我在 SecondViewController 中收到了一些字符串。在这个视图控制器中,我有一个 tableView,但还没有任何 tableCells。
我收到以下信息:
2013-01-14 11:24:22.342 Scanner[16200:c07] (
123456,
"Jeans lynn skinny coj glass",
"119.90",
"S, M, L, XL",
"G-Star"
)
2013-01-14 11:24:22.342 Scanner[16200:c07] jsonstring:{"2":"G-Star","3":null,"product":"Jeans lynn skinny coj glass","4":"119.90","maten":"S, M, L, XL","5":"S, M, L, XL","barcode":"123456","afbeelding":null,"0":"123456","winkel":"G-Star","prijs":"119.90","1":"Jeans lynn skinny coj glass"}
2013-01-14 11:24:22.342 Scanner[16200:c07] barcode:123456
2013-01-14 11:24:22.343 Scanner[16200:c07] product:Jeans lynn skinny coj glass
2013-01-14 11:24:22.343 Scanner[16200:c07] prijs:119.90
2013-01-14 11:24:22.343 Scanner[16200:c07] maten:S, M, L, XL
2013-01-14 11:24:22.343 Scanner[16200:c07] winkel:G-Star
从这段代码
array = [[NSArray alloc] init];
array = a;
NSLog(@"%@", a);
string = [[NSString alloc] init];
string = s;
NSLog(@"jsonstring:%@", s);
NSString * barcode = [a objectAtIndex:0];
NSLog(@"barcode:%@", barcode);
NSString * product = [a objectAtIndex:1];
NSLog(@"product:%@", product);
NSString * prijs = [a objectAtIndex:2];
NSLog(@"prijs:%@", prijs);
NSString * maten = [a objectAtIndex:3];
NSLog(@"maten:%@", maten);
NSString * winkel = [a objectAtIndex:4];
NSLog(@"winkel:%@", winkel);
有谁知道如何将它放在一个新单元格中,该单元格带有来自该单元格“123456”的标签,旁边有一个图像,以及子视图控制器中的其他信息?
我愿意在 2 天后悬赏这个问题