JSON Parsing Tutorial - Xcode 4.5 - Top 10 iTunes Albums
Why Stack Overflow recommends it
Stack Overflow users link it as a step-by-step tutorial for loading JSON into an iOS table view, and several askers cite it as the guide they were following when they hit errors.
Recommended by 1 people across 1 different months, 2013 to 2015.
What it is
A 24-minute screen-recorded iOS tutorial from 2012 showing how to fetch and parse JSON in Xcode 4.5 using Objective-C. It populates a table view with the top 10 iTunes albums, using a JSON viewer site and the iTunes RSS generator to inspect the data.
What people said
Recommends Brent · 2013-02 · Stack Overflow · on “JSON and dynamic TableView”
I found this video really usefull for learning. [this video] Also check some of my questions I ask alot about JSON but videos are a good way to move forward. More Links :) [LINK] [LINK]
Cites Miguel Grenho · 2013-05 · Stack Overflow · on “Facebook JSON feed - __NSArrayM insertObject:atIndex:]: object cannot be nil”
I'm trying to parse a Facebook Page Json Feed to a table view and followed this Tutorial [this video] and I'm getting this error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' * -[__NSArrayM insertObject:atIndex:]: object cannot be nil'" Here is my code from my tableview.h: #import "FBViewController.h" @interface FBViewController () { NSMutableData *fbdata; NSMutableArray *array; } @end @implementation FBViewController - (void)viewDidLoad { [super viewDidLoad]; [[self fbtableview]setDelegate:self]; [[self fbtableview]setDataSource:self]; array = [[NSMutableArray alloc]init]; NSURL *url = [NSURL URLWithString:@" [LINK] "]; NSURLRequest *request = [NSURLRequest
Cites LEVIS OGCPAS · 2015-01 · Stack Overflow · on “iOS - JSON Parsing error (blank logs)”
Good day! I'm having trouble parsing JSON in my ios app. I'm following this tutorial Click Here [this video] This is my connectionDidFinishLoading code -(void)connectionDidFinishLoading:(NSURLConnection *)connection { NSDictionary *allDataDictionary = [NSJSONSerialization JSONObjectWithData:webData options:0 error:nil]; NSArray *arrayOfArray = [allDataDictionary objectForKey:@"array"]; for (NSDictionary *diction in arrayOfArray) { NSDictionary *zero = [diction objectForKey:@"0"]; NSString *foods = [zero objectForKey:@"foods"]; [array addObject:foods]; } [[self myTableView]reloadData]; NSLog(@"%@",array); } The problem is, i don't have anything on my logs, its just 2015-01-14 11:19:51.992 NINETEEN
Cites y_291 · 2015-03 · Stack Overflow · on “Parsing RSS in Obj-C?”
I'm trying to parse RSS date to view in my app, following this tutorial [this video] . I have a JSON file to retrieve information from and display on the screen. Here's the code // // ViewController.m // JSONyt // // Created by yo_291 on 3/16/15. // Copyright (c) 2015 yo_291. All rights reserved. // #import "ViewController.h" @interface ViewController () { NSMutableData *webData; NSURLConnection *connection; NSMutableArray *array; } @end @implementation ViewController - (void)viewDidLoad { [[self myView]setDelegate:self]; [[self myView]setDataSource:self]; array = [[NSMutableArray alloc]init]; [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. } - (void)