开发者

NSURLConnection crashes my app if I scroll the table to end too fast

开发者 https://www.devze.com 2023-02-03 21:02 出处:网络
Hey, I got a little problem with NSURLConnection, my customcell class has a function that will load it\'s image with URLConnection. I call that function when the cell is being drawn and the problem co

Hey, I got a little problem with NSURLConnection, my customcell class has a function that will load it's image with URLConnection. I call that function when the cell is being drawn and the problem comes when I scroll too fast(It draws more cells) the URLConnection crashes the app. Prob开发者_C百科lem seems to come when too many URLConnections are active, I am thinking should I make queue or something..

Here is what I get: http://pastebin.com/CxhUEQbu

Thanks in advance!


The hint is near the bottom terminate called after throwing an instance of 'NSException', but also at the top; unrecognized selector sent to instance 0x72cfaa0. Find out which instance 0x72cfaa0 is (probably an Array), and you'll find your bug (you're sending a message to an instance that it doesn't know how to handle). I could tell you more, but finding the bug is half the fun really.

0

精彩评论

暂无评论...
验证码 换一张
取 消