Corona中文站

强大、易学的跨平台(iOS/Android)开发框架。QQ群1:74390406(满) 群2:221929599

导航

用xCode Leaks检查iPhone/iPad程序内存泄露
内存泄露代码

- (IBAction)clickUpdate:(id)sender{

UIImage *img = [[UIImage alloc] init];

//[img release];

}

正常代码

- (IBAction)clickUpdate:(id)sender{
UIImage *img = [[UIImage alloc] init];
[img release];

}

操作

出现内存泄露,双击列表,可以定位到代码
<< 隐藏iphone电池状态栏自定义UINavigationBar背景图片 >>

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最近发表

Powered By Z-Blog 1.8 Walle Build 100427 Copyright 2011-2015 BuildApp.Net. All Rights Reserved.