SHARE
TWEET

Untitled

a guest Jan 21st, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&error];
  2.    
  3. NSArray *country=[json objectForKey:@"results"];
  4.    
  5. 2012-06-18 09:22:07.647 TableView[468:f803] (
  6.                 {
  7.                 "Countries" = Iceland;
  8.                  "id"=9046567;
  9.                   "name"=abceeeffdsg;
  10.  
  11.  
  12.             },
  13.                 {
  14.                 "Countries" = Greenland;
  15.                 "id"=3524695;
  16.                 "name"=gsfjgfsethju;
  17.     },
  18.                 {
  19.                  "Countries" = Switzerland;
  20.                  "id"=4613583;
  21.                  "name"=hdfkdgs;
  22.         )
  23.    
  24. 1. numberof RowInSection use the [country count];
  25. 2. In the cellForRowAtIndexPath
  26.  
  27.     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. OK, I Understand
 
Top