Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old May 10, 2011, 10:32 AM   #1
macrumors newbie
Join Date: May 2011
How to create a youtube rss app

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];

Last edited by dejo; May 10, 2011 at 10:34 AM. Reason: Please use [code] tags.
PingreeProgram is offline   0 Reply With Quote
Old May 11, 2011, 12:15 AM   #2
macrumors 6502
Join Date: Jan 2011
Location: Los Angeles, CA
Can you post the actual error? Also, is -loadData defined in your implementation?
My iOS Apps: Schedules, Pitch Fever, Gridiron Fan
Shawnpk is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Create a YouTube Video gw0gvq Digital Video 17 May 29, 2014 01:44 PM
iPhone 5 users- YouTube app or YouTube safari? The Game 161 iPhone and iPod touch Apps 9 Oct 12, 2012 11:26 PM
YouTube-API Feed RSS not loading Lagax iPhone/iPad Programming 9 Sep 19, 2012 05:59 AM
Why does the YouTube app play better quality than the Safari version of YouTube? Big.Mac.Daddy iPhone 16 Aug 20, 2012 09:53 AM
Resolved: RSS appcasts: what's the easiest way to create/update them? wrldwzrd89 Web Design and Development 0 Jul 24, 2012 12:29 PM

Forum Jump

All times are GMT -5. The time now is 04:21 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC