MMRecord with CoreData
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
IDNetworkingExample.xcodeproj
IDNetworkingExample.xcworkspace
IDNetworkingExample
IDNetworkingExampleTests
Pods
.gitignore
LICENSE
Podfile
Podfile.lock
README.md

README.md

*NB still under active development, may not compile or make sense yet

MMRecord With CoreData: example project

I wanted to produce a reference project demonstrating how I often tackle certain aspects of writing iOS apps.

This is a simple example of how I lay out my networking code, including how to create manager classes to move logic out of the ViewController.

I'm firstly putting all my stuff in one project, and then I'll look at improving it, upgrading all cocoapod dependancies, and migrating it to Swift.

So far it demonstrates how to pull from a JSON API, catch network and JSON-level errors, deal with any JSON preprocessing that might be necessary (if the API is really serving us junk), then how to load the results into CoreData

Uses:

  • UISearchController for iOS8

  • We don't use the startRequestWithURN networking built into MMRecord and instead roll our own using AFNetworking as described in this MutualMobile blog post: "AFNetworking Response Serialization With MMRecord 1.2". This gives us a lot more flexibility, and has worked well in production.

#Inspirations & Resources

TODO:

  • extend with MVVM layout using KVO.
  • produce equivelant example in Swift.

Many thanks to key collaborator Rogier Saarloos