Latest 1.0.0
Homepage https://github.com/DeveloperPans/PSWeakProxy
License MIT
Platforms ios 7.0, requires ARC
Authors

PSWeakProxy 中文

docs
Pod Version
License
Platform
SwiftCompatible

A proxy for resolve retain cycle,such as NSTimer etc.


Getting Start

Installation with CocoaPods

add follow line into your podfile:

pod 'PSWeakProxy'

Usage

Talk is cheap,this is simple code.

PSWeakProxy *weakSelf = [[PSWeakProxy alloc] initWithObject:self];
self.timer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                            target:weakSelf
                                                selector:@selector(timeIsPassing:)
                                                userInfo:[NSDate date]
                                                 repeats:YES];

Latest podspec

{
    "name": "PSWeakProxy",
    "version": "1.0.0",
    "summary": "A weak proxy for reslove retain cycle",
    "description": "A weak proxy for reslove retain cycle.nA weak proxy for reslove retain cycle.",
    "homepage": "https://github.com/DeveloperPans/PSWeakProxy",
    "license": "MIT",
    "authors": {
        "Pan": "[email protected]"
    },
    "social_media_url": "http://shengpan.net",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/DeveloperPans/PSWeakProxy.git",
        "tag": "1.0.0"
    },
    "source_files": "PSWeakProxy/*.{h,m}"
}

Pin It on Pinterest

Share This