Question : iphone JSON Data to tableview

I already have JSON data that I retrieved from a URL, I followed a tutorial to do so, so now it's just sitting in a label. I need that information to be placed in a table view..The sample data looks like this :
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
{
 entry: {
  {
  city :  'city',
 state: 'state', 
 zip: 'zip',
 

 } 

}


But I need it to be in a tableview ...this is the code I am using to put it in the label:
1:
2:
3:
4:
5:
6:
		NSMutableString *text = [NSMutableString stringWithString:@"Lucky numbers:\n"];
		
		for (int i = 0; i < [luckyNumbers count]; i++) 
			[text appendFormat:@"%@\n", [luckyNumbers objectAtIndex:i]];

		label.text =  text;


Thanks

Answer : iphone JSON Data to tableview

I thought you are talking about the Mac.
NSTableView is a class from AppKit, it's Cocoa.
UITableView is a class from UIKit, it's Cocoa Touch.
I do not know for sure. I'm too lazy to make iPhone programs. How I know, UITableView has only one column.

Here is a nice article about UITableView (the code included):
http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html
Random Solutions  
 
programming4us programming4us