Last active
January 6, 2016 08:54
-
-
Save lexrus/5734257 to your computer and use it in GitHub Desktop.
Log all NSNotifications. #import <objc/runtime.h> absolutely! Original: https://coderwall.com/p/7mopeq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if TARGET_IPHONE_SIMULATOR | |
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Wimplicit" | |
// Log all notifications via tail -f /tmp/msgSends-* | |
instrumentObjcMessageSends(YES); | |
#pragma clang diagnostic pop | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment