/MSDeallocCallback

Primary LanguageObjective-CMIT LicenseMIT

UIButton-Blocks

platform GitHub license CocoaPods

Features

  • block syntax

Installation

Cocoapods(Recommended)

  1. Add pod 'MSDeallocCallBack' to your Podfile.
  2. Run pod install

Manual

  1. 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.