View Full Version : How to create a youtube rss app

May 10, 2011, 10:32 AM
Hello I am new to programming and I followed a guide on how to take videos and play them in an app. I wanted to take this a step further and have the app play videos from a persons youtube channel. I only had one error and it said
"method definition not in @implementation context".

Here's the part of the code with the error:

#import "RootViewController.h"
#import "Parser.h"

@interface RootViewController (PrivateMethods)
- (void)loadData;

@implementation RootViewController

@synthesize activityIndicator, items;

// Other code in the class

- (void)dealloc {
[activityIndicator release];
[items release];
[super dealloc];


#pragma mark -
#pragma mark View lifecycle

- (void)viewDidLoad {
[super viewDidLoad];

UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
indicator.hidesWhenStopped = YES;
[indicator stopAnimating];
self.activityIndicator = indicator;
[indicator release];

UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithCustomView:indicator];
self.navigationItem.rightBarButtonItem = rightButton;
[rightButton release];

May 11, 2011, 12:15 AM
Can you post the actual error? Also, is -loadData defined in your implementation?