Skip to content

MrPans/PSWeakProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published