0

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.

Community
  • 1
  • 1
shallowThought
  • 19,212
  • 9
  • 65
  • 112
  • 1
    They have given a possible workaround in the link you have mentioned. Have you explored those options Update (possible solution/workaround): The "SKSTableView" project (link at the end of the question) uses a category on NSIndexPath and associated objects to add a third property "subrow" to an index path. – shri Jul 14 '15 at 07:07
  • Thanks. We ended up using _NSMapTable_ like mentioned in the link. I was hoping to find a workaround to keep on using _AssociatedObject_. Somthing like getting the actual NSDate somehow. – shallowThought Jul 16 '15 at 08:29

0 Answers0