I am trying to use the swizzling method to catch alloc for NSObject .
NSObject *obj = [[NSObject alloc] init]; UIView *view = [[UIView alloc] initWithFrame:CGRectZero]; NSString *str = [[NSString alloc] init]; [...]
This is an implementation (category .m) that works in all other methods except alloc on NSObjet .
What could be the reason?
thanks.
source share