How to create a youtube rss app

Discussion in 'iOS Programming' started by PingreeProgram, May 10, 2011.

  1. PingreeProgram, May 10, 2011
    Last edited by a moderator: May 10, 2011

    macrumors newbie

    May 9, 2011
    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];
  2. macrumors 6502

    Jan 13, 2011
    Los Angeles, CA
    Can you post the actual error? Also, is -loadData defined in your implementation?

Share This Page