SKSTableView icon indicating copy to clipboard operation
SKSTableView copied to clipboard

ios7 crash

Open Qiunee opened this issue 9 years ago • 2 comments

When i use in IOS7. in here objc_setAssociatedObject will crash.

Qiunee avatar May 14 '15 03:05 Qiunee

  • (NSInteger)subRow { id indexpath = [NSIndexPath class]; id subRowObj = objc_getAssociatedObject(indexpath, SubRowObjectKey); return [subRowObj integerValue]; }
  • (void)setSubRow:(NSInteger)subRow { id subRowObj = [NSNumber numberWithInteger:subRow]; id indexpath = [NSIndexPath class]; objc_setAssociatedObject(indexpath, SubRowObjectKey, subRowObj, OBJC_ASSOCIATION_RETAIN_NONATOMIC); } My solution but i don't know whether it is the best

zhuhao528 avatar Jun 11 '15 05:06 zhuhao528

Yes, that's working for me. Please update the control with this change.

mariovillamizar avatar Jul 21 '15 16:07 mariovillamizar