Latest 0.0.2
Homepage https://github.com/soragoto/SRGEventDateRecorder
License MIT
Platforms ios 6.0, requires ARC
Authors

CI Status
Version
License
Platform

SRGEventDateRecorder record event date and count persistently.

Anrdoid project is here.

Installation

Add the following line to your podfile and run pod update.

pod 'SRGEventDateRecorder'

Usage

At first you need to include header file.

#import "SRGEventDateRecorder.h"

You can record event.

SRGEventDateRecorder *eventRecorder = [SRGEventDateRecorder recorderWithKey:@"my_event"];
[eventRecorder record];

You can access to recorded data.

SRGEventDateRecorder *eventRecorder = [SRGEventDateRecorder recorderWithKey:@"my_event"];

// return: BOOL
eventRecorder.didRecorded;

// return: NSUInteger
eventRecorder.recordedCount;

// return NSDate
eventRecorder.recordedDate;

// return: BOOL
[eventRecorder didElapsedSinceLastRecordedDateWithSeconds:60];

You can clear data.

SRGEventDateRecorder *eventRecorder = [SRGEventDateRecorder recorderWithKey:@"my_event"];
[eventRecorder clear];

LICENSE

SRGEventDateRecorder is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "SRGEventDateRecorder",
    "version": "0.0.2",
    "summary": "Persist event date and count easily.",
    "homepage": "https://github.com/soragoto/SRGEventDateRecorder",
    "license": "MIT",
    "authors": {
        "Norihiro Sakamoto": "[email protected]"
    },
    "source": {
        "git": "https://github.com/soragoto/SRGEventDateRecorder.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This