I need to list a specific users uploaded videos (YouTube) in a UITableView. I’ve downloaded the GData source and example projects (not iphone specific) but I can’t seem to get it to work. Does anybody know of any good (or any at all ;)) tutorials out there?
Best regards,
Magnus
Assuming you have included the GData client libraries to your project, you need to make a call to fetch the user’s uploads, and then display them. Here’s the simplest way I can think of:
Create an instance variable in your table view controller class that will hold the feed data returned from the YouTube API.
RootViewController.h
Inside the implementation file, make a call to the API to fetch all uploaded videos. Inside the callback selector
request:finishedWithFeed:error, store the results in whatever format suits, and reload the table view. In the table viewscellForRowAtIndexPathmethod, format the cell as desired:RootViewController.m
Checkout the full source code for RootViewController.