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:
	
	
	
		
	
		
			
		
		
	
				
			"method definition not in @implementation context".
Here's the part of the code with the error:
		Code:
	
	#import "RootViewController.h"
#import "Parser.h"
@interface RootViewController (PrivateMethods)
- (void)loadData;
@end
@implementation RootViewController
@synthesize activityIndicator, items;
// Other code in the class
- (void)dealloc {
  	[activityIndicator release];
  	[items release];
	[super dealloc];
}
@end
#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];
}
			
				Last edited by a moderator: