Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-10-2009, 07:07 PM   #1 (permalink)
pyr0b0y
Registered Member
 
Join Date: May 2009
Posts: 15
Default Stuck with RSSReader

Heres my code, I followed the tutorial directly but i still get variable undeclared errors...heres my code:

Code:
//
//  RSSReaderAppDelegate.m
//  RSSReader
//
//  Created by Josh Mac on 5/10/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import "RSSReaderAppDelegate.h"

@implementation RSSReaderAppDelegate

@synthesize window;

-(void)applicationDidFinishLaunching:(UIApplication *)application {  
	
    tabBarController = [[UITabBarController alloc] initWithNibName:nil bundle:nil];  
	
    // Create instances of the MainViewController for the 4 TabBar buttons  
    MainViewController *viewController1 = [[[MainViewController alloc] initWithNibName:nil bundle:nil] autorelease];  
    viewController1.tabBarItem.title = @"Browse All";  
    MainViewController *viewController2 = [[[MainViewController alloc] initWithNibName:nil bundle:nil] autorelease];  
    viewController2.tabBarItem.title = @"Most Recent";  
    MainViewController *viewController3 = [[[MainViewController alloc] initWithNibName:nil bundle:nil] autorelease];  
    viewController3.tabBarItem.title = @"Favorites";  
    MainViewController *viewController4 = [[[MainViewController alloc] initWithNibName:nil bundle:nil] autorelease];  
    viewController4.tabBarItem.title = @"Settings";  
    tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2, viewController3, viewController4, nil];  
	
    // Add the tab bar controller's current view as a subview of the window  
    [window addSubview:tabBarController.view];  
	
    // Override point for customization after application launch  
    [window makeKeyAndVisible];  
}  


- (void)dealloc {
    [window release];
    [super dealloc];
}


@end
pyr0b0y is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,804
Threads: 89,205
Posts: 380,609
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Xiomaradcii
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:08 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.