Last active
December 12, 2015 09:29
-
-
Save stevederico/4751596 to your computer and use it in GitHub Desktop.
application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
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
- (BOOL)application:(UIApplication *)application | |
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:8 * 1024 * 1024 diskCapacity:20 * 1024 * 1024 diskPath:nil]; | |
[NSURLCache setSharedURLCache:URLCache]; | |
[[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES]; | |
**SDScaffoldIndexViewController *scaffoldViewController = [[SDScaffoldIndexViewController alloc] initWithEntityName:@"ENTITYNAME" sortBy:@"PROPERTY" context:self.managedObjectContext];** | |
self.navigationController = [[UINavigationController alloc] initWithRootViewController:**scaffoldViewController**]; | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
self.window.rootViewController = self.navigationController; | |
[self.window makeKeyAndVisible]; | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment