Skip to content

Instantly share code, notes, and snippets.

@msv
Created March 4, 2013 22:45
Show Gist options
  • Save msv/5086362 to your computer and use it in GitHub Desktop.
Save msv/5086362 to your computer and use it in GitHub Desktop.
#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;
}
@oms23
Copy link

oms23 commented May 17, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment