StarterProject-iOS
- Clone the repository and open the Xcode project at
Demo-Auth-iOS/Auth.xcodeproj
. - Add your MaxLeap application id and client key in
AppDelegate.m
. - Compile and Run.
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.