摘要: 一直对IOS的内存管理这块不是很了解,等忙完手上的项目,就抓紧时间梳理下。 昨天写程序遇到一个问题,关于NSIndexPath的。程序中有段代码是这样的: self.lastIndexPath = [[NSIndexPath alloc] init]; NSIndexPath *temp = [NSIndexPathindexPathForRow:self.selectRowinSection:1]; self.lastIndexPath = temp; [temp release]; 然后程序就运行中在 @synthesize lastIndexPath 的 地方报一个错: t... 阅读全文
posted @ 2012-07-12 15:02 yessir 阅读(927) 评论(0) 推荐(0) 编辑