/StarterProject-iOS

MaxLeap StarterProject for iOS

Primary LanguageObjective-CCreative Commons Zero v1.0 UniversalCC0-1.0

StarterProject-iOS

StarterProject-iOS

How to run

  1. Clone the repository and open the Xcode project at Demo-Auth-iOS/Auth.xcodeproj.
  2. Add your MaxLeap application id and client key in AppDelegate.m.
  3. Compile and Run.

Test the SDK

First make sure to include our SDK libraries from your ViewController.h file:

#import <MaxLeap/MaxLeap.h>

Then copy and paste this code into your app, for example in the viewDidLoad method of ViewController.m.

MLObject *testObject = [MLObject objectWithClassName:@"TestObject"];
testObject[@"foo"] = @"bar";
[testObject saveInBackgroundWithBlock:nil];

Run your app. A new object of class TestObject will be sent to the MaxLeap and saved.