Using the following code in a NSDate
category, I get a EXC_BAD_ACCESS_(code=EXC_I386_GPFLT) crash error whenever the type of the NSDate
is actually __NSTaggedDate
:
objc_setAssociatedObject(self, MyKey, myValue, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
How I understand the information I read, this is a known issue caused by an Apple bug which shows up under iOS7 on 64 bit systems only.
I am looking for a workaround.