bten89 / MSDeallocCallback

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:Objective-C 84.1%Language:Ruby 15.9%