Why my app crashes when copying an array with certain strings to a dictionary?
I'm working with a tableview that shows an array of dictionaries. Everything was working fine until I wanted to add an array of strings to the new dictionaries.
The strings in the array have the format "CALL 34". When I add the array the app shows the tableview again but after a second it crashes without showing anything at the console.
The very rare thing is that the app works fine if the strings are between "CALL 1" and "CALL 32", or between "CALL 99" and "CALL 100". The console shows the "modifying layer that is being finalized" error when it works tho.
I NSLog'd the array before adding it and the strings are all fine. 开发者_StackOverflow社区Any idea would help as I'm completly lost! Thanks
I tryed not releasing anything in that class and the problem is solved (I should find what was making it crash...). The class is a heritated class.
Without showing code, it is impossible to say exactly. As well, if there is a crash, there is a backtrace. Show it, too.
Sounds like a memory management issue.
精彩评论