You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NSSafeProxy: unrecognized selector [print:] sent to A
@interface A : NSObject
- (void)print:(NSString*)msg;
@end
@implementation A
@end
Update
NSArray , NSDictionary compacity for iOS9 and iOS 10
different class cluster with different container element
0 element 1 element > 1 element
__NSArray0 __NSSingleArrayI __NSArrayI
__NSDictionary0 __NSSingleEntryDictionaryI __NSDictionaryI
Desciption
Swizzle commonly used function of Foundation container to prevent nil crash
Assert in Debug and log in Release
Usage:
involve NSObjectSafe.h/NSObjectSafe.m as build phases
Warn:
Compile NSObjectSafe.m with -fno-objc-arc, otherwise it will cause strange release error: [UIKeyboardLayoutStar release]: message sent to deallocated instance