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

    Joined:
    May 9, 2011
    #1
    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:

    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];
    }
     
  2. macrumors 6502

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

Share This Page