No description, website, or topics provided.
Branch: master
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.
Example
Pod
.gitignore
.travis.yml
LICENSE
ManagedStatsOC.podspec
README.md
_Pods.xcodeproj

README.md

ManagedStatsOC

[![CI Status](http://img.shields.io/travis/Bob Pascazio/ManagedStatsOC.svg?style=flat)](https://travis-ci.org/Bob Pascazio/ManagedStatsOC) Version License Platform

Requirements

Installation

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

pod 'ManagedStatsOC', '~> 0.1'

Usage

Begin by setting up an account with ManagedApps.

Tap on '+ New App' and enter the application name.

Search for appKey and apiKey under 'MY APPS' -> 'Information' -> 'VIEW APP KEY' & 'VIEW API KEY'. This information will be used for the next step.

Objective - C

#import "ManagedStatsOC.h"

Add the following code to AppDelegate didFinishLaunchingWithOptions method,

[ManagedStats setAppKey:@"PUT_APP_KEY_HERE" setApiKey:@"PUT_API_KEY_HERE"];
[ManagedStats appLaunched];

Add the following code to AppDelegate applicationWillEnterForeground method,

[ManagedStats sessionStart];

Swift

Make sure you have 'use_frameworks!' as part of your podfile documentation.

import ManagedStatsOC

Add the following code to AppDelegate didFinishLaunchingWithOptions method,

ManagedStats.setAppKey("PUT_APP_KEY_HERE", setApiKey: "PUT_API_KEY_HERE")
ManagedStats.appLaunched()

Add the following code to AppDelegate applicationWillEnterForeground method,

ManagedStats.sessionStart()

Author

Bob Pascazio, bob@bytefly.com

License

ManagedStatsOC is available under the MIT license. See the LICENSE file for more info.