Skip to content

Commit

Permalink
Fix breakage in Twitter example running under iOS 5.x. fixes RestKit#…
Browse files Browse the repository at this point in the history
  • Loading branch information
blakewatters committed Dec 14, 2012
1 parent 5f589ba commit 6299b22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 1 addition & 5 deletions Examples/RKTwitter/Classes/RKTwitterAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@

#import <UIKit/UIKit.h>


@interface RKTwitterAppDelegate : NSObject <UIApplicationDelegate> {
}

@interface RKTwitterAppDelegate : UIResponder <UIApplicationDelegate>
@end

11 changes: 5 additions & 6 deletions Examples/RKTwitter/Classes/RKTwitterAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

@implementation RKTwitterAppDelegate

@synthesize window;

#pragma mark -
#pragma mark Application lifecycle

Expand All @@ -33,7 +35,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

// Initialize RestKit
RKObjectManager *objectManager = [[RKObjectManager alloc] initWithHTTPClient:client];


// Setup our object mappings
RKObjectMapping *userMapping = [RKObjectMapping mappingForClass:[RKTUser class]];
Expand Down Expand Up @@ -71,13 +72,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
// Create Window and View Controllers
RKTwitterViewController *viewController = [[RKTwitterViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *controller = [[UINavigationController alloc] initWithRootViewController:viewController];
UIWindow *window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
[window addSubview:controller.view];
[window makeKeyAndVisible];
self.window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
self.window.rootViewController = controller;
[self.window makeKeyAndVisible];

return YES;
}



@end

0 comments on commit 6299b22

Please sign in to comment.