PSWeakProxy 中文
A proxy for resolve retain cycle,such as NSTimer etc.
add follow line into your podfile:
pod 'PSWeakProxy'
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];