Skip to content

Instantly share code, notes, and snippets.

@brettkelly
Created May 15, 2012 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettkelly/2705822 to your computer and use it in GitHub Desktop.
Save brettkelly/2705822 to your computer and use it in GitHub Desktop.
ECAppDelegate.m modified to include Evernote OAuth configuration and initialization
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
self.viewController = [[[ECViewController alloc] initWithNibName:@"ECViewController" bundle:nil] autorelease];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
// Set up Evernote OAuth
NSString *EVERNOTE_HOST = @"sandbox.evernote.com";
NSString *CONSUMER_KEY = @"your-key";
NSString *CONSUMER_SECRET = @"your-secret";
[EvernoteSession setSharedSessionHost:EVERNOTE_HOST
consumerKey:CONSUMER_KEY
consumerSecret:CONSUMER_SECRET];
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment