A couple of years ago I mentioned the excellent Objective-C modelling framework Mantle that provides many nice features such as allowing you to quickly return a JSON dictionary representing an object.
Here’s a step-by-step example submitted by Atomic Object that will show you how to create a user model with Mantle to pass to a server.
Specifically the guide will show you how to set up the basic object, set up the required property keys by Mantle, set up a property transformer for data that cannot easily be serialized, and the actual serialization of the model.
You can find the guide over on the Atomic Object blog.
A nice straightforward guide for those getting started with mantle.
- Easy To Use Objective-C Modeling Framework With JSON Encoding, Minimal Boilerplate Code
- AFNetworking Extension Using The Mantle Modeling Framework For Working With RESTful Services
- Open Source iOS Library For Simplifying Data Parsing
- Tutorial: Building A Weather App With Functional Objective-C Programming Using ReactiveCocoa
- Free Tool That Automatically Converts JSON Models To Objective-C Objects And Core Data Models
Original article: A Simple Guide To Getting Started With The Mantle Modeling Framework
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.