Created
March 4, 2013 22:45
-
-
Save msv/5086362 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "AppDelegate.h" | |
#import "ADVTheme.h" | |
#import "StackMob.h" | |
#define PUBLIC_KEY @"YOUR_PUBLIC_KEY" | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
[ADVThemeManager customizeAppAppearance]; | |
self.client = [[SMClient alloc] initWithAPIVersion:@"0" publicKey:PUBLIC_KEY]; | |
self.coreDataStore = [self.client coreDataStoreWithManagedObjectModel:self.managedObjectModel]; | |
return YES; | |
} | |
- (NSManagedObjectModel *)managedObjectModel | |
{ | |
if (_managedObjectModel != nil) { | |
return _managedObjectModel; | |
} | |
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"ApartmentModel" withExtension:@"momd"]; | |
_managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL]; | |
return _managedObjectModel; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i try to running the app on my device the open and show me the login screen when i press login they start loding and crash Cocoa error 513