"unrecognized selector sent to instance"问题的解决

我遇到的是提前release掉

Product类成员调用了[tmp objectAtIndex:1]

而类成员是指针类型,tmp在被默认release掉后,就报错了.

只要在[[tmp objectAtIndex:1]copy]就可以了.

posted @ 2012-11-24 09:43  LeeTVin  阅读(157)  评论(0编辑  收藏  举报