-
Notifications
You must be signed in to change notification settings - Fork 115
BAD_ACCESS when expanding table view cell using 64-bit iPhone #2
Comments
Thanks for the issue, i did not test the control for the 64-bit devices, my bad. But i will check the issue and fix the problem. |
See http://stackoverflow.com/a/21562526/1187415 for an analysis of the problem and a possible solution for 64-bit mode. |
I temporarily fixed the issue by setting the subRow property as NSString not NSNumber. The explanation in the stackoverflow question helped me much, thank you. I will close this issue for now, but this problem will be in my mind. |
The bug is not fixed. It still crashes on 64-bit. The problem is not that subRow is a NSNumber. The problem is that NSIndexPath ("self" in the setSubRow: method) is possibly a "tagged pointer" and setting an associated object on a tagged pointer crashes. |
I may understand the problem wrong. However, i test the table in 64-bit iPhone simulator, it works fine. So, i considered it as resolved. You try it in simulator or the real device? |
I tested it in the 64-bit iPhone Simulator, and it crashes immediately if you expand a row. I changed the build architectures to "Standard Architectures (including 64-bit)" first, otherwise it is compiled for 32-bit only. - I cloned your repository and will try to check-in my fix. But I am still new to git and github, so this may take some time ... |
Sorry about my answer, i forgot to change the build architecture (it does not include 64-bit). So, the problem does still exists. |
Is it resolved? |
ok guys , there is simple and elegant solution to solve this :)
from that reason you need to change "way" you setting in 2 methods .
} self-->isa IS PROBLEM on arm64 on iOS . This works for 32bits and 64bit arch :) |
thank u so much this solve my problem in 64 bit and 32 bit |
love u boss solved my problem |
even after replacing the code I've got the same issue! any other solutions? |
The code works for me |
Thank u so much this solve my crash in iOS7.x |
Hi
|
Same problem in iOS7 and it worked, Thks! |
Hi - Love the control, just thought I'd share an issue that took me a while to figure out! Unfortunately I don't really know how to solve it but hopefully it'll help
When compiling with the "Standard Architectures + 64 bit" setting on my iPhone 5S, it crashes with a BAD_ACCESS exception when expanding a table view cell.
It occurs on SKSTableView.m line 705 (the objc_setAssociatedObject call in setSubRow: )
The problem, as far as I can see, is that under 64 bit architectures the subRowObj is being treated as a long instead of an int (which it is on 32 bit) as shown below
I've changed my project settings to exclude 64 bit architectures (as in the sample app you provided) and its working fine now
The text was updated successfully, but these errors were encountered: