SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&error];
- NSArray *country=[json objectForKey:@"results"];
- 2012-06-18 09:22:07.647 TableView[468:f803] (
- {
- "Countries" = Iceland;
- "id"=9046567;
- "name"=abceeeffdsg;
- },
- {
- "Countries" = Greenland;
- "id"=3524695;
- "name"=gsfjgfsethju;
- },
- {
- "Countries" = Switzerland;
- "id"=4613583;
- "name"=hdfkdgs;
- )
- 1. numberof RowInSection use the [country count];
- 2. In the cellForRowAtIndexPath
- cell.textLabel.text = [[country objectAtIndex:indexPath.row] objectForKey:@"Countries"];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.