Skip to content

Instantly share code, notes, and snippets.

View stevederico's full-sized avatar

Steve Derico stevederico

View GitHub Profile
@stevederico
stevederico / gist:4676452
Last active December 11, 2015 23:28
AFNetworking + AFIncrementalStore + SDScaffoldKit = Client/Server App

AFNetworking + AFIncrementalStore + SDScaffoldKit = Client/Server App

SDScaffoldKit with AFNetworking Template

These are the exact steps needed to take to create an syncing client-server app in 3 minutes. Watch this video for a complete demo. You will need to have CocoaPods Installed on your machine.

  1. Install CocoaPods
  2. Create New Project with AFNetworking Xcode Template
  3. Close current project. cd to PROJECTNAME directory then
  4. Run pod install
@stevederico
stevederico / gist:4751596
Last active December 12, 2015 09:29
application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- (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];**

Episode 32

Summary

This week on Refactor.tv Sam and Steve talk about the Kickoff, Mailbox, and Hue.

Drinks

@refactortv your favorite cocktails.

@stevederico
stevederico / gist:5316737
Last active December 15, 2015 20:09
How to Add AFIncrementalStore to an Existing Project

How to Add AFIncrementalStore to an Existing Project

Add dependencies without Cocoapods

  • Add Core Data
  • Add Mobile Core Services
  • Add System Configuration
  • Add AFIncrementalStore
  • Add AFNetworking
  • Add InflectorKit

Episode 35

Summary

This week on Refactor.tv Sam and Steve talk about the Facebook Home, Blink, and iOS7.

Drinks

@refactortv your favorite cocktails.