Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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];

About

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

Resources

License

Packages

No packages published
You can’t perform that action at this time.