Latest 1.0
Homepage https://github.com/ChatGame/HWWeakTimer
License MIT
Platforms ios 7.0, requires ARC
Authors

Description

NSTimer alternative that doesn’t retain the target.

How to Use

You can create a NSTimer with target and selector and the NSTimer will not maintain a strong reference to target:

+ (NSTimer *) scheduledTimerWithTimeInterval:(NSTimeInterval)interval
                                      target:(id)aTarget
                                    selector:(SEL)aSelector
                                    userInfo:(id)userInfo
                                     repeats:(BOOL)repeats;

Or you can use block to create a NSTimer:

+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)interval
                                      block:(HWTimerHandler)block
                                   userInfo:(id)userInfo
                                    repeats:(BOOL)repeats;

License

MIT

Latest podspec

{
    "name": "HWWeakTimer",
    "version": "1.0",
    "summary": "NSTimer alternative that doesn't retain the target.",
    "description": "You can create a NSTimer with target and selector and the NSTimer will not maintain a strong reference to target. Or you can use block to create a NSTimer.",
    "homepage": "https://github.com/ChatGame/HWWeakTimer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "callmewhy": "https://github.com/callmewhy"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/ChatGame/HWWeakTimer.git",
        "tag": "1.0"
    },
    "source_files": "Classes/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This