UIButton-Blocks
Features
- block syntax
Installation
Cocoapods(Recommended)
- Add
pod 'MSDeallocCallBack'
to your Podfile. - Run
pod install
Manual
- Add all files under
MSDeallocCallback
to your project
Requirements
- iOS 5.0 and greater
- ARC
How To Use
Objective-C:
#import "NSObject+MSDeallocCallBack.h"
@property(nonatomic,assign)SecondViewController* sc;
WEAKSELF
[self.sc deallocCallBack:^{
weakSelf.sc = nil;
NSLog(@"xxxx%@",weakSelf.sc);
}];
License
MSDeallocCallback is available under the MIT license. See the LICENSE file for more info.