Giter Club home page Giter Club logo

mave-ios-sdk's Introduction

Mave the service has shut down as of Dec 2015.

This library is still functional as a stand-alone invite or share page, but the Mave-provided services such as SMS invite delivery, the stats dashboard, and suggested invites are no longer available.

The code is now open-source under an MIT license, so feel free to use it as you please.

Mave iOS SDK

Build Status

Usage

You can see it in action (without any server-side interactions) in the included demo app. To run it:

  • pod install to pull the required dependencies
  • then open MaveSDK.xcworkspace in xcode and build the DemoApp Target.

Quick Integration

The Mave SDK is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MaveSDK"

Then, initialize the SDK in applicationDidFinishLaunchingWithOptions:

#import <MaveSDK.h>;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [MaveSDK setupSharedInstance];

    // The rest of your app's setup code
}

Then, use the following code to present the page (e.g. in the action for clicking on an "invite friends" button)

[[MaveSDK sharedInstance] presentInvitePageModallyWithBlock:^(UIViewController *inviteController) {
    // Code to present Mave's view controller from yours, e.g:
    // [self presentViewController:inviteController animated:YES completion:nil];
} dismissBlock:^(UIViewController *controller, NSUInteger numberOfInvitesSent) {
    // Code to transition back to your view controller after Mave's
    // is dismissed (sent invites or cancelled), e.g:
    // [controller dismissViewControllerAnimated:YES completion:nil];
} inviteContext:@"default"];

Author

© Mave Technologies 2015

[email protected]

License

MIT. See the LICENSE file.

mave-ios-sdk's People

Contributors

astaub avatar dcosson avatar gregeinfrank avatar johngraham262 avatar tempestn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.