Thank you for the extremely helpful tutorial. Few appreciative viewers who gain a ton of knowledge watching your videos trumps thousands of people who don't care. Props man!
Thank you so much, it works for me and I only started working with Xcode a couple of weeks ago! Prior to that I had never done any programming. You have a real talent. I look forward to the next tutorial. Thanks again for sharing your knowledge.
I just started learning how to develop iOS6 / objective-c since about August this year and really appreciate your video tutorial. Thanks so much for sharing your knowledge.
Nice tutorial. Thank you! Question for you: How can I pull down the entire object associated with "entry" and use the various object variables in the app? For example, I'd also like to pull down the image and display in the table view with the album title, then selecting a row might load a detail view controller with the image, album title, artist name, and release date.
Great tutorial. I got it to work with my own JSON data. Question going forward. You labeled the cells with values in an array. How could you save two values for each entry, (like title and artist) and then for each cell, print the Title and then the artist below it. Maybe just a hint to get me started :)
this tutorial is exactly what i was looking for, so thank you. one question i have tho, is if you can attach this to a progress bar when you hit the button. also how would you go about implementing a search field so you could manually in the app replace the number 10 with 20, 100, etc.. please help if you can. thanks for your time :D
@iffytheperfect1983 Great tutorial really helped me out but how would I add the title to an array and the summary to a different array? Thanks for any help
thank you very much but what if want do this click on row and see in another view the album poster and rating ... it's just load the data , but we can't use the data
Hi, thank you for your great video! I have one question, why do you make your storyboard connections weak? is it wrong if i make them strong? thank you! :-)
great tutorial, i really enjoy the exercise, now i attempt to segue json data to a detailViewController, hope you can suggest a method, thank's for tutorial!
Awesome tutorial. I have a quick question. I followed your code and I'm able to display one NSString of data how can I display multiple? Here is where my problem is: for (NSDictionay *diction in arrayOfEntry) { NSString *currDate = [diction objectForKey:@"Current Date"]; [array addObject:currDate]; } So basically I want to pull in another row in addition to currDate and the rest of my code is exactly the same as yours I know this is where the add has to be but I just can't get it to work.
Thanks very much for this tutorial - I'm getting inconstent data too - the problem is with the JSON supplied by itunes being slightly out of date - not your code :)
Ok. Did some work and found a way to pull multiple variables to the device for display. I create a custom class of type NSObject, assign it properties and populate with values from the iTunes query. Here's a sample: for (NSDictionary *diction in arrayOfEntry) { album *newAlbum = [[album alloc] init]; NSDictionary *title = [diction objectForKey:@"im:name"]; newAlbum.title = [title objectForKey:@"label"]; etc. [array addObject:newAlbum]; This works but is there an easier way?
Hi Iffy, nice tutorial, but when run a project is one warring "Unused variable label" and when i tap a button the app connect, but in the tableview I see just the string "label". where am I doing wrong? Thanks
Thanks for the tutorial. I would appreciate if you could show how to add images to the tableview as well. So there would be an image and a title in the cell.
Hey! Thanks so much for this tut. Quick question... I have modified this so that a user can enter in a domain name via a text box. Once I check an active domain name and get a successful connection, all other domain names entered return the same result. Is there any way to clear out the previous.. basically i am just checking to see if the site returns a status code of 200.. if it doesn't then I want a message that the site is down. I can't reload the table data bc I am not using a table.
Wow! this is great! I'm trying to do the same thing but the first JSON starts with "[]"; can you help me figure out what is wrong with this code: NSArray *allDataArray = [NSJSONSerialization JSONObjectWithData:webData options:0 error:nil]; NSDictionary *entryDiction = [allDataArray objectForKey:@"entry"]; ..... its exactly the same code as the video... just the JSON starts as an array and not a Dictionary
How is this JSON parsing performance comparing to Jquery mobile? Jquery mobile and JSON is a disaster in performance. Is it possible to get the source for this? Iam new to xcode and following along almost, Great work! Thanks
I still get the same error messages,: "textLabel not found on any type of UITavbleView" and "expected identifier"... I think it had something to do with "textLabel"...
Hi Love the tutorial but I think the reason why you had an issue with the data matching in your video it's because you parse the data from JSON object and usually if we don't have an index value for our data the data will display at random so thanks again
The last line of code doesn't work. "cell.textLabel.text = [[array objectAtIndex:indexPath.row];" I get the errors: Property "textLabel not found on any type of "UITableView *" and Expected identifier..... Help?
How can I go into the NSDictionary 0 or 1 I tried this but it don't works: NSDictionary *feed = [allDetailDictionary objectForKey:@"feed"]; NSArray *arrayOfEntry = [feed objectForKey:@"entry"]; for (NSDictionary *diction in arrayOfEntry) { NSDictionary *rowNumber = [diction objectForKey:@"0"]; NSDictionary *titel = [rowNumber objectForKey:@"titel"]; NSString *label = [titel objectForKey:@"label"]; [self.objects addObject:label]; }
You can have textfield or something and grab the number entered by the user.. For example: If user entered 20.. replace the NSURL *url = [NSURL URLWithString:@"h t t p ://itunes.apple.com/us/rss/topalbums/limit=10/json"]; With NSString *number = @"20"; // number that user entered NSString *urlStr = [NSString stringWithFormat:@"h t t p ://itunes.apple.com/us/rss/topalbums/limit=%d/json", [number intValue]]; NSURL *url = [NSURL URLWithString:urlStr]; Then from there, everything else is same.
It's usually good to intialize things to 0 in programming. For example, when he creates the NSMutableData, it's possible that it might be full of garbage to start (at least thats how it would work in C++). He's he's using the method appendData:, we want to make sure there's nothing there. Appending data to garbage is no good. :)
Yea, Maybe type it in. I tried copy and pasting and some extra characters came up also. just ignore the htt p s and type in github dot com slash iffytheperfect1983 slash jsonparsingtutorial. That worked for me
Thank you for the extremely helpful tutorial. Few appreciative viewers who gain a ton of knowledge watching your videos trumps thousands of people who don't care. Props man!
Thank you so much, it works for me and I only started working with Xcode a couple of weeks ago! Prior to that I had never done any programming. You have a real talent. I look forward to the next tutorial. Thanks again for sharing your knowledge.
Hey man, I'd like to thank you for making this tutorial - it helped me out so much. Very informative and clear. Liked and subscribed!
I just started learning how to develop iOS6 / objective-c since about August this year and really appreciate your video tutorial. Thanks so much for sharing your knowledge.
The only tutorial I could find that made sense. Thanks!
Very good tutorial. Clear and well-paced. And most of all.. it works in the end.
thank you best json tutorial so far
Really good tutorial, friend. Thanks for the tutorial. keep it up.
awesome tutorial! learnt something about parsing and json!
Very Good Tutorial !! Thanks from Argentina!
Nice tutorial. Thank you! Question for you: How can I pull down the entire object associated with "entry" and use the various object variables in the app? For example, I'd also like to pull down the image and display in the table view with the album title, then selecting a row might load a detail view controller with the image, album title, artist name, and release date.
Great tutorial. I got it to work with my own JSON data. Question going forward. You labeled the cells with values in an array. How could you save two values for each entry, (like title and artist) and then for each cell, print the Title and then the artist below it. Maybe just a hint to get me started :)
awesome tutorial man ,, really understandable and a good job ..
This was a very helpful video. Thank you.
great tutorial.. just what i needed.. thanks
this tutorial is exactly what i was looking for, so thank you. one question i have tho, is if you can attach this to a progress bar when you hit the button. also how would you go about implementing a search field so you could manually in the app replace the number 10 with 20, 100, etc.. please help if you can. thanks for your time :D
@iffytheperfect1983 thank you very much. Got it working now. Great tutorial by the way, keep up the good work!
Thank You !! :) Good Job From Egypt
Really nice tutorial, thank you sir.
@iffytheperfect1983 Great tutorial really helped me out but how would I add the title to an array and the summary to a different array?
Thanks for any help
Great tutorial ... really helpful
Awesom tuts!!! Thank you so much! How can i connect with you, to ask some question regardin programming?
thank you very much
but what if want do this
click on row and see in another view the album poster and rating ...
it's just load the data , but we can't use the data
Thanks again, for helping me keep my GPA.:)
Thank you very much .. excellent tutorial .. very much appreciate it.
Hi, thank you for your great video! I have one question, why do you make your storyboard connections weak? is it wrong if i make them strong? thank you! :-)
great tutorial, i really enjoy the exercise, now i attempt to segue json data to a detailViewController, hope you can suggest a method, thank's for tutorial!
You are my hero! Thank you!
Awesome tutorial. I have a quick question. I followed your code and I'm able to display one NSString of data how can I display multiple? Here is where my problem is:
for (NSDictionay *diction in arrayOfEntry) {
NSString *currDate = [diction objectForKey:@"Current Date"];
[array addObject:currDate];
}
So basically I want to pull in another row in addition to currDate and the rest of my code is exactly the same as yours I know this is where the add has to be but I just can't get it to work.
Thanks very much for this tutorial - I'm getting inconstent data too - the problem is with the JSON supplied by itunes being slightly out of date - not your code :)
Ok. Did some work and found a way to pull multiple variables to the device for display. I create a custom class of type NSObject, assign it properties and populate with values from the iTunes query. Here's a sample:
for (NSDictionary *diction in arrayOfEntry) {
album *newAlbum = [[album alloc] init];
NSDictionary *title = [diction objectForKey:@"im:name"];
newAlbum.title = [title objectForKey:@"label"];
etc.
[array addObject:newAlbum];
This works but is there an easier way?
Great tutorial, it helped a lot lot..
thank u so much ..
Hi Iffy, nice tutorial, but when run a project is one warring "Unused variable label" and when i tap a button the app connect, but in the tableview I see just the string "label". where am I doing wrong?
Thanks
Thanks for the tutorial. I would appreciate if you could show how to add images to the tableview as well. So there would be an image and a title in the cell.
awesome tutorial, Thank you!
Hey! Thanks so much for this tut. Quick question... I have modified this so that a user can enter in a domain name via a text box. Once I check an active domain name and get a successful connection, all other domain names entered return the same result. Is there any way to clear out the previous.. basically i am just checking to see if the site returns a status code of 200.. if it doesn't then I want a message that the site is down. I can't reload the table data bc I am not using a table.
I thought that Making it UITableViewCell would fix it.
can you copy and paste the error message?
'connectionWithRequest:delegate' is deprecated. "Use NSURLSession"
any suggestions on this breakpoint?
Wow! this is great!
I'm trying to do the same thing but the first JSON starts with "[]"; can you help me figure out what is wrong with this code:
NSArray *allDataArray = [NSJSONSerialization JSONObjectWithData:webData options:0 error:nil];
NSDictionary *entryDiction = [allDataArray objectForKey:@"entry"];
.....
its exactly the same code as the video... just the JSON starts as an array and not a Dictionary
I'm using this same URI but with help of Eclipse IDE + GWT, i'm getting a null result incoming of the RPC call. Solutions?
I'm having a similar error.
"Property 'text' cannot be found in forward class object 'UILabel' "
btw, I'm using Xcode 4.6. Can you help me?
How would I reload the data? When I push the button it does nothing - the data only reloads when I kill the app and reload it.
How is this JSON parsing performance comparing to Jquery mobile? Jquery mobile and JSON is a disaster in performance.
Is it possible to get the source for this?
Iam new to xcode and following along almost, Great work! Thanks
I still get the same error messages,: "textLabel not found on any type of UITavbleView" and "expected identifier"... I think it had something to do with "textLabel"...
I getting this error: No visible @interface for 'NSMutableData declares the selector 'options:error:'
Any suggestions?
thanks
Hi Love the tutorial but I think the reason why you had an issue with the data matching in your video it's because you parse the data from JSON object and usually if we don't have an index value for our data the data will display at random so thanks again
hi im new to objective c :D on connection didReceiveResponse. why did you set the data length to 0? why 0? sorry.im a noob.thanks
simple tutorial. was informative
hi this was great tutorial
The last line of code doesn't work. "cell.textLabel.text = [[array objectAtIndex:indexPath.row];"
I get the errors: Property "textLabel not found on any type of "UITableView *" and Expected identifier..... Help?
How can I go into the NSDictionary 0 or 1 I tried this but it don't works:
NSDictionary *feed = [allDetailDictionary objectForKey:@"feed"];
NSArray *arrayOfEntry = [feed objectForKey:@"entry"];
for (NSDictionary *diction in arrayOfEntry) {
NSDictionary *rowNumber = [diction objectForKey:@"0"];
NSDictionary *titel = [rowNumber objectForKey:@"titel"];
NSString *label = [titel objectForKey:@"label"];
[self.objects addObject:label];
}
You can have textfield or something and grab the number entered by the user.. For example: If user entered 20.. replace the
NSURL *url = [NSURL URLWithString:@"h t t p ://itunes.apple.com/us/rss/topalbums/limit=10/json"];
With
NSString *number = @"20"; // number that user entered
NSString *urlStr = [NSString stringWithFormat:@"h t t p ://itunes.apple.com/us/rss/topalbums/limit=%d/json", [number intValue]];
NSURL *url = [NSURL URLWithString:urlStr];
Then from there, everything else is same.
i keep getting sigabrt! i really cant see what i'm doing wrong, is there any way you could upload the source code?
if i want to load album image to the tableview to the each album title then how to code in this same tutorial ??? +iffytheperfect1983
This still isn't working - would you be able to repost please?
Excellent...!
nice tutorial, thank you
If i want to load the iTunes albums starts without the top 10 button what can i do?
If you would want to load the data without using the button, put the button code in the viewDidLoad method. Hope this works for you.
thank you :) nice work
You rock!!!!!!!!!!!!!!!!!!!!!
thank you for this :)
It's usually good to intialize things to 0 in programming. For example, when he creates the NSMutableData, it's possible that it might be full of garbage to start (at least thats how it would work in C++). He's he's using the method appendData:, we want to make sure there's nothing there. Appending data to garbage is no good. :)
I think I found the problem, I replaced the line with:
"cell.text = [array objectAtIndex:indexPath.row];"
cell.text is deprecated, use cell.textLabel.text (If you're running iSO 3.0 or higher.
Github page doesnt exist for me! Are you sure its public?!
Amazing tutorial, thanks :)
PS: I wrote if (!connection) and had to re-watch the whole thing :((.
i am getting error in online viewer
Thank you!
Change to UITableViewCell instead of UITableView.
That should do the trick.
Hope that fixes it :)
You are getting this error because you probably forgot to change the last query name from xml to json! The last phrase will be /json not /xml
thank you so much
Nope, I still get the same errors :(
Thanks a lot
Thank you
Figured it out. Here's the code:
- (IBAction)nameIn.hFile {
NSURL *url = [NSURL URLWithString:@"yourURL"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
connection = [NSURLConnection connectionWithRequest:request delegate:self];
if (connection)
{
webData = [[NSMutableData alloc] init];
}
[[self myTableView]setDelegate:self];
[[self myTableView]setDataSource:self];
array = [[NSMutableArray alloc] init];
}
good video but i highly recommend AFNetworking to do this.
Legal!
Same here
You make me nervers. But it's a great Tutorial.
great tutorial ut im getting a sigabrt
good one (Y)
Yea, Maybe type it in. I tried copy and pasting and some extra characters came up also. just ignore the htt p s and type in github dot com slash iffytheperfect1983 slash jsonparsingtutorial. That worked for me
Yea, I uploaded the source just now. Check out here
h t t p s : / / g ithub.com/iffytheperfect1983/jsonparsingtutorial