• Stars
    star
    408
  • Rank 105,565 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 4 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.