器材显示我在下面的代码模拟器泄漏,内存泄漏
UIBarButtonItem *connectButton = [[UIBarButtonItem alloc] initWithTitle:@"Connexion" style:UIBarButtonItemStyleBordered target:self action:@selector(pushViewController)];
[self.navigationItem setLeftBarButtonItem:connectButton animated:animated];
[connectButton release];
你看到任何泄漏?谢谢
它报告什么样的泄漏? – 2011-05-13 20:10:25
这段代码看起来不错 - 你确定这是内存泄漏的报道吗? – occulus 2011-05-13 20:14:58
泄漏对象:_NSCFType。负责任的图书馆:CoreGraphics。负责框架:CGTypeCreateInstanceWithAllocator – samir 2011-05-13 20:24:24